﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BLL;
using Model;
using System.Reflection;
using System.ComponentModel;

namespace IYASAKATools
{
    public partial class FrmData : Form
    {
        #region 公共属性
        //综检刹车
        public RESULT_BRAKE_ZJ M_RESULT_BRAKE_ZJ { get; private set; }

        //综检灯光
        public RESULT_LAMP_ZJ M_RESULT_LAMP_ZJ { get; private set; }

        //车辆基本信息
        public RESULT_VEHICLE_INFO M_RESULT_VEHICLE_INFO { get; private set; }
        //底盘测功
        public RESULT_DPCG M_RESULT_DPCG { get; private set; }
        //路试
        public RESULT_ROAD M_RESULT_ROAD { get; private set; }
        //双怠速
        public RESULT_SDS M_RESULT_SDS { get; private set; }
        //ASM
        public RESULT_ASM M_RESULT_ASM { get; private set; }
        //VMAS
        public RESULT_VMAS M_RESULT_VMAS { get; private set; }
        //加载减速
        public RESULT_LD M_RESULT_LD { get; private set; }
        //自由加速
        public RESULT_ZYJS M_RESULT_ZYJS { get; private set; }
        //车速表
        public RESULT_SPEED M_RESULT_SPEED { get; private set; }
        //声级
        public RESULT_SPEAKER M_RESULT_SPEAKER { get; private set; }
        //侧滑
        public RESULT_SIDESLIP M_RESULT_SIDESLIP { get; private set; }
        //悬架
        public RESULT_SUSPENSION M_RESULT_SUSPENSION { get; private set; }

        //当前检测流水号
        public string CurJCLSH { get; private set; }
        //检测流水号列表
        public List<string> lstJCLSH { get; private set; }
        //制动参数类
        public ParaInfo ParaInfos { get; set; }
        #endregion

        public FrmData(string jclsh)
        {
            InitializeComponent();

            this.Size = new System.Drawing.Size(1652, 716);

            #region 检测流水号
            CurJCLSH = jclsh;
            lstJCLSH = GetAllJCLSH(jclsh);
            #endregion

            //得到基本信息
            GetBaseZJDataTables();

            //制动
            GetBrakeZJDataTables();

            //灯光
            GetLampZJDataTables();

            //底盘测功
            GetDPCGZJDataTables();

            //路试
            GetRoadZJDataTables();

            //双怠速
            GetSDSZJDataTables();

            //加载减速
            GetLDZJDataTables();

            //稳态工况
            GetASMDataTables();
           
            //自由加速
            GetZYJSDataTables();

            //VMAS
            GetVMASDataTables();
           
            //车速
            GetSPEEDDataTables();
            
            //声级
            GetSPEAKERDataTables();
            //侧滑
            GetSIDESLIPDataTables();
            //悬架
            GetSUSPENSIONDataTables();
           
            //基本信息赋值给TextBox
            BindBaseZJTextBoxValue();

            //制动赋值给textbox;
            BindBrakeZJTextBoxValue();

            //灯光赋值给textbox
            BindLampZJTextBoxValue();

            //底盘测功赋值给textbox
            BindDPCGZJTextBoxValue();

            //路试赋值给textbox  
            BindRoadZJTextBoxValue();
            
            //双怠速赋值给textbox
            BindSDSZJTextBoxValue();
        
            //加载减速赋值给textbox
            BindLDZJTextBoxValue();
           
            //稳态工况赋值给textbox
            BindASMZJTextBoxValue();

            //自有加速赋值给textbox
            BindZYJSZJTextBoxValue();

            //瞬态工况赋值给textbox
            BindVMASZJTextBoxValue();
            
            //车速表复制给textbox
            BindSPEEDZJTextBoxValue();
           
            //声级
            BindSPEAKERZJTextBoxValue();
            
            //侧滑
            BindSIDESLIPZJTextBoxValue();
            //悬架
            BindSUSPENSIONZJTextBoxValue();
            
            //设置TextBox Change 事件           
            SetEvents();

            SetParaInfoDefault();
        }

        private void SetEvents()
        {
            foreach (Control ctl in this.tabBase.Controls)
            {
                if (ctl is TextBox)
                {
                    TextBox txtBox = ctl as TextBox;
                    txtBox.TextChanged += new EventHandler(txtBoxBase_TextChanged);
                }
            }

            foreach (Control ctl in this.tabBrake.Controls)
            {
                if (ctl is TextBox)
                {
                    TextBox txtBox = ctl as TextBox;
                    txtBox.TextChanged += new EventHandler(txtBox_TextChanged);
                }
            }

            foreach (Control ctl in this.tabLamp.Controls)
            {
                if (ctl is TextBox)
                {
                    TextBox txtBox = ctl as TextBox;
                    txtBox.TextChanged += new EventHandler(txtBoxDG_TextChanged);
                }
            }

            foreach (Control ctl in this.tabDP.Controls)
            {
                if (ctl is TextBox)
                {
                    TextBox txtBox = ctl as TextBox;
                    txtBox.TextChanged += new EventHandler(txtBoxDP_TextChanged);
                }
            }
            foreach (Control ctl in this.tabSDS.Controls)
            {
                if (ctl is TextBox)
                {
                    TextBox txtBox = ctl as TextBox;
                    txtBox.TextChanged += new EventHandler(txtBoxSDS_TextChanged);
                }
            }
            foreach (Control ctl in this.tabJZJS.Controls)
            {
                if (ctl is TextBox)
                {
                    TextBox txtBox = ctl as TextBox;
                    txtBox.TextChanged += new EventHandler(txtBoxLD_TextChanged);
                }
            }
            foreach (Control ctl in this.tabASM.Controls)
            {
                if (ctl is TextBox)
                {
                    TextBox txtBox = ctl as TextBox;
                    txtBox.TextChanged += new EventHandler(txtBoxASM_TextChanged);
                }
            }
            foreach (Control ctl in this.tabZYJS.Controls)
            {
                if (ctl is TextBox)
                {
                    TextBox txtBox = ctl as TextBox;
                    txtBox.TextChanged += new EventHandler(txtBoxZYJS_TextChanged);
                }
            }
            foreach (Control ctl in this.tabVMAS.Controls)
            {
                if (ctl is TextBox)
                {
                    TextBox txtBox = ctl as TextBox;
                    txtBox.TextChanged += new EventHandler(txtBoxVMAS_TextChanged);
                }
            }
            foreach (Control ctl in this.tabSPEED.Controls)
            {
                if (ctl is TextBox)
                {
                    TextBox txtBox = ctl as TextBox;
                    txtBox.TextChanged += new EventHandler(txtBoxSPEED_TextChanged);
                }
            }
            foreach (Control ctl in this.tabSPEAKER.Controls)
            {
                if (ctl is TextBox)
                {
                    TextBox txtBox = ctl as TextBox;
                    txtBox.TextChanged += new EventHandler(txtBoxSPEAKER_TextChanged);
                }
            }
            foreach (Control ctl in this.tabSIDESLIP.Controls)
            {
                if (ctl is TextBox)
                {
                    TextBox txtBox = ctl as TextBox;
                    txtBox.TextChanged += new EventHandler(txtBoxSIDESLIP_TextChanged);
                }
            }
             foreach (Control ctl in this.tabXJ.Controls)
            {
                if (ctl is TextBox)
                {
                    TextBox txtBox = ctl as TextBox;
                    txtBox.TextChanged += new EventHandler(txtBoxSUSPENSION_TextChanged);
                }
            }
        }

        private void SetParaInfoDefault()
        {
            RESULT_VEHICLE_INFO_BLL bll = new RESULT_VEHICLE_INFO_BLL();
            var info = bll.GetModel(CurJCLSH);

            ParaInfos = new ParaInfo();

            //总轴数
            ParaInfos.ZZS = Convert.ToInt32(info.ZZS);
            ParaInfos.ZXZLXDH = Convert.ToInt32(info.ZXZLXDH);
            string strJYLB = info.JYLBDH;
            if (info.JYLBDH.Contains(","))
            {
                strJYLB = info.JYLBDH.Replace(",", "");
            }
            ParaInfos.JYLBDH = Convert.ToInt32(strJYLB);

            //ParaInfos.ZDLVBZ  =M_RESULT_BRAKE_ZJ.QZZDLVBZ

            ParaInfos.ZJ_BREAK_SUM_STD = new float[6] { 
                float.Parse(string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.YZZDLVBZ) ? "0" : M_RESULT_BRAKE_ZJ.YZZDLVBZ), 
                float.Parse(string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.EZZDLVBZ) ? "0" : M_RESULT_BRAKE_ZJ.EZZDLVBZ),
                float.Parse(string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SZZDLVBZ) ? "0" : M_RESULT_BRAKE_ZJ.SZZDLVBZ), 
                float.Parse(string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SIZZDLVBZ) ? "0" : M_RESULT_BRAKE_ZJ.SIZZDLVBZ), 
                float.Parse(string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.WZZDLVBZ) ? "0" : M_RESULT_BRAKE_ZJ.WZZDLVBZ), 
                float.Parse(string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.LZZDLVBZ) ? "0" : M_RESULT_BRAKE_ZJ.LZZDLVBZ) };

            ParaInfos.BPHLVBZDY60 = new float[2] { 
                float.Parse(string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.QZBPHLVBZ) ? "0" :M_RESULT_BRAKE_ZJ.QZBPHLVBZ), 
                float.Parse(string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.HZBPHLVBZDY60) ? "0" :M_RESULT_BRAKE_ZJ.HZBPHLVBZDY60) };

            ParaInfos.BPHLVBZXY60 = new float[2] { 
                float.Parse(string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.QZBPHLVBZ) ? "0" :M_RESULT_BRAKE_ZJ.QZBPHLVBZ), 
                float.Parse(string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.HZBPHLVBZXY60) ? "0" :M_RESULT_BRAKE_ZJ.HZBPHLVBZXY60) };

            ParaInfos.BPHLVBZDY60_1 = new float[2] { 
                float.Parse(string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.QZBPHLVBZ_1) ? "0" :M_RESULT_BRAKE_ZJ.QZBPHLVBZ_1),
                float.Parse(string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.HZBPHLVBZDY60_1) ? "0" :M_RESULT_BRAKE_ZJ.HZBPHLVBZDY60_1) };

            ParaInfos.BPHLVBZXY60_1 = new float[2] { 
                float.Parse(string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.QZBPHLVBZ_1) ? "0" :M_RESULT_BRAKE_ZJ.QZBPHLVBZ_1), 
                float.Parse(string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.HZBPHLVBZXY60_1) ? "0" :M_RESULT_BRAKE_ZJ.HZBPHLVBZXY60_1) };

            int iYZZZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.YZZZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.YZZZ);
            int iEZZZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.EZZZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.EZZZ);
            int iSZZZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SZZZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SZZZ);
            int iSIZZZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SIZZZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SIZZZ);
            int iWZZZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.WZZZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.WZZZ);
            int iLZZZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.LZZZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.LZZZ);
            ParaInfos.ZJ_AXIS_WEIGHT = new int[6] { iYZZZ, iEZZZ, iSZZZ, iSIZZZ, iWZZZ, iLZZZ };

            //左轮重
            int iYZZLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.YZZLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.YZZLZ);
            int iEZZLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.EZZLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.EZZLZ);
            int iSZZLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SZZLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SZZLZ);
            int iSIZZLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SIZZLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SIZZLZ);
            int iWZZLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.WZZLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.WZZLZ);
            int iLZZLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.LZZLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.LZZLZ);
            ParaInfos.ZJ_AXIS_WEIGHT_L = new int[6] { iYZZLZ, iEZZLZ, iSZZLZ, iSIZZLZ, iWZZLZ, iLZZLZ };

            //左复合台轮重
            ParaInfos.ZJ_AXIS_WEIGHT_FHT = new int[6] { 0, 0, 0, 0, 0, 0 };
            int iFHTYZZLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.FHTYZZLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.FHTYZZLZ);
            int iFHTEZZLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.FHTEZZLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.FHTEZZLZ);
            int iFHTSZZLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.FHTSZZLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.FHTSZZLZ);
            int iFHTSIZZLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.FHTSIZZLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.FHTSIZZLZ);
            int iFHTWZZLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.FHTWZZLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.FHTWZZLZ);
            int iFHTLZZLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.FHTLZZLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.FHTLZZLZ);
            ParaInfos.ZJ_AXIS_WEIGHT_FHT_L = new int[6] { iFHTYZZLZ, iFHTEZZLZ, iFHTSZZLZ, iFHTSIZZLZ, iFHTWZZLZ, iFHTLZZLZ };


            //右轮重
            int iYZYLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.YZYLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.YZYLZ);
            int iEZYLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.EZYLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.EZYLZ);
            int iSZYLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SZYLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SZYLZ);
            int iSIZYLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SIZYLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SIZYLZ);
            int iWZYLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.WZYLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.WZYLZ);
            int iLZYLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.LZYLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.LZYLZ);
            ParaInfos.ZJ_AXIS_WEIGHT_R = new int[6] { iYZYLZ, iEZYLZ, iSZYLZ, iSIZYLZ, iWZZLZ, iLZYLZ };

            //右复合台轮重
            int iFHTYZYLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.FHTYZYLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.FHTYZYLZ);
            int iFHTEZYLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.FHTEZYLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.FHTEZYLZ);
            int iFHTSZYLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.FHTSZYLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.FHTSZYLZ);
            int iFHTSIZYLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.FHTSIZYLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.FHTSIZYLZ);
            int iFHTWZYLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.FHTWZYLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.FHTWZYLZ);
            int iFHTLZYLZ = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.FHTLZYLZ.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.FHTLZYLZ);
            ParaInfos.ZJ_AXIS_WEIGHT_FHT_R = new int[6] { iFHTYZYLZ, iFHTEZYLZ, iFHTSZYLZ, iFHTSIZYLZ, iFHTWZZLZ, iFHTLZYLZ };

            ParaInfos.ZJ_AXIS_WEIGHT_ALL_L = 0;
            ParaInfos.ZJ_AXIS_WEIGHT_ALL_R = 0;
            ParaInfos.ZJ_AXIS_WEIGHT_ALL = 0;

            ParaInfos.BREAK_FORCE = new int[6] { 0, 0, 0, 0, 0, 0 };

            //左轮制动
            int iYZZZDZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.YZZZDZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.YZZZDZDL);
            int iEZZZDZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.EZZZDZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.EZZZDZDL);
            int iSZZZDZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SZZZDZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SZZZDZDL);
            int iSIZZZDZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SIZZZDZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SIZZZDZDL);
            int iWZZZDZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.WZZZDZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.WZZZDZDL);
            int iLZZZDZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.LZZZDZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.LZZZDZDL);
            ParaInfos.BREAK_FORCE_L = new int[6] { iYZZZDZDL, iEZZZDZDL, iSZZZDZDL, iSIZZZDZDL, iWZZZDZDL, iLZZZDZDL };

            //右轮制动
            int iYZYZDZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.YZYZDZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.YZYZDZDL);
            int iEZYZDZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.EZYZDZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.EZYZDZDL);
            int iSZYZDZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SZYZDZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SZYZDZDL);
            int iSIZYZDZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SIZYZDZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SIZYZDZDL);
            int iWZYZDZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.WZYZDZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.WZYZDZDL);
            int iLZYZDZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.LZYZDZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.LZYZDZDL);
            ParaInfos.BREAK_FORCE_R = new int[6] { iYZYZDZDL, iEZYZDZDL, iSZYZDZDL, iSIZYZDZDL, iWZYZDZDL, iLZYZDZDL };

            //左轮过程差
            ParaInfos.DIFFERENCE_FORCE = new float[6] { 0, 0, 0, 0, 0, 0 };
            float fYZZZDCZD = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.YZZZDCZD.Trim()) ? 0 : float.Parse(M_RESULT_BRAKE_ZJ.YZZZDCZD);
            float fEZZZDCZD = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.EZZZDCZD.Trim()) ? 0 : float.Parse(M_RESULT_BRAKE_ZJ.EZZZDCZD);
            float fSZZZDCZD = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SZZZDCZD.Trim()) ? 0 : float.Parse(M_RESULT_BRAKE_ZJ.SZZZDCZD);
            float fSIZZZDCZD = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SIZZZDCZD.Trim()) ? 0 : float.Parse(M_RESULT_BRAKE_ZJ.SIZZZDCZD);
            float fWZZZDCZD = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.WZZZDCZD.Trim()) ? 0 : float.Parse(M_RESULT_BRAKE_ZJ.WZZZDCZD);
            float fLZZZDCZD = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.LZZZDCZD.Trim()) ? 0 : float.Parse(M_RESULT_BRAKE_ZJ.LZZZDCZD);

            ParaInfos.DIFFERENCE_FORCE_L = new float[6] { fYZZZDCZD, fEZZZDCZD, fSZZZDCZD, fSIZZZDCZD, fWZZZDCZD, fLZZZDCZD };

            //右轮过程差
            ParaInfos.DIFFERENCE_FORCE = new float[6] { 0, 0, 0, 0, 0, 0 };
            float fYZYZDCZD = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.YZYZDCZD.Trim()) ? 0 : float.Parse(M_RESULT_BRAKE_ZJ.YZYZDCZD);
            float fEZYZDCZD = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.EZYZDCZD.Trim()) ? 0 : float.Parse(M_RESULT_BRAKE_ZJ.EZYZDCZD);
            float fSZYZDCZD = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SZYZDCZD.Trim()) ? 0 : float.Parse(M_RESULT_BRAKE_ZJ.SZYZDCZD);
            float fSIZYZDCZD = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SIZYZDCZD.Trim()) ? 0 : float.Parse(M_RESULT_BRAKE_ZJ.SIZYZDCZD);
            float fWZYZDCZD = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.WZYZDCZD.Trim()) ? 0 : float.Parse(M_RESULT_BRAKE_ZJ.WZYZDCZD);
            float fLZYZDCZD = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.LZYZDCZD.Trim()) ? 0 : float.Parse(M_RESULT_BRAKE_ZJ.LZYZDCZD);
            ParaInfos.DIFFERENCE_FORCE_R = new float[6] { fYZYZDCZD, fEZYZDCZD, fSZYZDCZD, fSIZYZDCZD, fWZYZDCZD, fLZYZDCZD };

            ParaInfos.ZJ_BREAK_SUM = new float[6] { 0, 0, 0, 0, 0, 0 };
            //ParaInfos.ZJ_BREAK_SUM_STD = new float[6] { 0, 0, 0, 0, 0, 0 };
            ParaInfos.ZJ_BREAK_SUM_JUDGE = new int[6] { 0, 0, 0, 0, 0, 0 };

            ParaInfos.ZJ_BREAK_DIF = new float[6] { 0, 0, 0, 0, 0, 0 };

            ParaInfos.ZJ_BREAK_DIF_STD_DY60 = new float[6] { 0, 0, 0, 0, 0, 0 }; //大于等于60%标准
            ParaInfos.ZJ_BREAK_DIF_STD_XY60 = new float[6] { 0, 0, 0, 0, 0, 0 }; //小于60%标准
            ParaInfos.ZJ_BREAK_DIF_STD_DY60_1 = new float[6] { 0, 0, 0, 0, 0, 0 }; //大于等于60%标准(1级)
            ParaInfos.ZJ_BREAK_DIF_STD_XY60_1 = new float[6] { 0, 0, 0, 0, 0, 0 }; //小于60%标准(1级)

            //char strDB_BPHLBZ[6][20]={"YZBPHLVBZ","EZBPHLVBZ","SZBPHLVBZ","SIZBPHLVBZ","WZBPHLVBZ","LZBPHLVBZ"};
            ParaInfos.ZJ_BREAK_DIF_STD = new float[6] { 0, 0, 0, 0, 0, 0 };        //保存数据库用

            //char strDB_BPHLPD[6][20]={"YZBPHLV_PD","EZBPHLV_PD","SZBPHLV_PD","SIZBPHLV_PD","WZBPHLV_PD","LZBPHLV_PD"};
            ParaInfos.ZJ_BREAK_DIF_JUDGE = new int[6] { 0, 0, 0, 0, 0, 0 };     //差比判定

            //阻滞力
            //char strDB_ZZZL[6][20]={"YZZZZL","EZZZZL","SZZZZL","SIZZZZL","WZZZZL","LZZZZL"};
            int iYZZZZL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.YZZZZL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.YZZZZL);
            int iEZZZZL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.EZZZZL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.EZZZZL);
            int iSZZZZL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SZZZZL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SZZZZL);
            int iSIZZZZL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SIZZZZL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SIZZZZL);
            int iWZZZZL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.WZZZZL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.WZZZZL);
            int iLZZZZL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.LZZZZL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.LZZZZL);

            ParaInfos.ZJ_BLOCK_FORCE_L = new int[6] { iYZZZZL, iEZZZZL, iSZZZZL, iSIZZZZL, iWZZZZL, iLZZZZL };   //阻滞力左 -

            //char strDB_YZZL[6][20]={"YZYZZL","EZYZZL","SZYZZL","SIZYZZL","WZYZZL","LZYZZL"};
            int iYZYZZL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.YZYZZL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.YZYZZL);
            int iEZYZZL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.EZYZZL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.EZYZZL);
            int iSZYZZL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SZYZZL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SZYZZL);
            int iSIZYZZL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SIZYZZL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SIZYZZL);
            int iWZYZZL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.WZYZZL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.WZYZZL);
            int iLZYZZL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.LZYZZL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.LZYZZL);
            ParaInfos.ZJ_BLOCK_FORCE_R = new int[6] { iYZYZZL, iEZYZZL, iSZYZZL, iSIZYZZL, iWZYZZL, iLZYZZL };    //阻滞力右 -
            //阻滞率
            //char strDB_ZZZLV[6][20]={"YZZZZLV","EZZZZLV","SZZZZLV","SIZZZZLV","WZZZZLV","LZZZZLV"};
            ParaInfos.ZJ_BLOCK_SUM_L = new float[6] { 0, 0, 0, 0, 0, 0 };    //阻滞率左

            //char strDB_YZZLV[6][20]={"YZYZZLV","EZYZZLV","SZYZZLV","SIZYZZLV","WZYZZLV","LZYZZLV"};
            ParaInfos.ZJ_BLOCK_SUM_R = new float[6] { 0, 0, 0, 0, 0, 0 };  //阻滞率右

            //char strDB_ZZLBZ[6][20]={"YZZZLVXZBZ","EZZZLVXZBZ","SZZZLVXZBZ","SIZZZLVXZBZ","WZZZLVXZBZ","LZZZLVXZBZ"};
            ParaInfos.ZJ_BLOCK_SUM_STD = 10; //阻滞率标准   -

            //char strDB_ZZZLVPD[6][20]={"YZZZZL_PD","EZZZZL_PD","SZZZZL_PD","SIZZZZL_PD","WZZZZL_PD","LZZZZL_PD"};
            ParaInfos.ZJ_BLOCK_SUM_L_JUDGE = new int[6] { 0, 0, 0, 0, 0, 0 };  //阻滞率判定

            //char strDB_YZZLVPD[6][20]={"YZYZZL_PD","EZYZZL_PD","SZYZZL_PD","SIZYZZL_PD","WZYZZL_PD","LZYZZL_PD"};
            ParaInfos.ZJ_BLOCK_SUM_R_JUDGE = new int[6] { 0, 0, 0, 0, 0, 0 };  //阻滞率判定


            //手制动力
            //char strDB_SZDL[6][20]={"YZSZDL","EZSZDL","SZSZDL","SIZSZDL","WZSZDL","LZSZDL"};
            ParaInfos.HAND_FORCE = new int[6] { 0, 0, 0, 0, 0, 0 };

            //char strDB_ZSZDL[6][20]={"YZZSZDL","EZZSZDL","SZZSZDL","SIZZSZDL","WZZSZDL","LZZSZDL"};
            int iYZZSZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.YZZSZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.YZZSZDL);
            int iEZZSZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.EZZSZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.EZZSZDL);
            int iSZZSZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SZZSZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SZZSZDL);
            int iSIZZSZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SIZZSZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SIZZSZDL);
            int iWZZSZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.WZZSZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.WZZSZDL);
            int iLZZSZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.LZZSZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.LZZSZDL);
            ParaInfos.HAND_FORCE_L = new int[6] { iYZZSZDL, iEZZSZDL, iSZZSZDL, iSIZZSZDL, iWZZSZDL, iLZZSZDL };    //左轮手制动力  -

            //char strDB_YSZDL[6][20]={"YZYSZDL","EZYSZDL","SZYSZDL","SIZYSZDL","WZYSZDL","LZYSZDL"};
            int iYZYSZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.YZYSZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.YZYSZDL);
            int iEZYSZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.EZYSZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.EZYSZDL);
            int iSZYSZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SZYSZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SZYSZDL);
            int iSIZYSZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SIZYSZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.SIZYSZDL);
            int iWZYSZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.WZYSZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.WZYSZDL);
            int iLZYSZDL = string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.LZYSZDL.Trim()) ? 0 : int.Parse(M_RESULT_BRAKE_ZJ.LZYSZDL);
            ParaInfos.HAND_FORCE_R = new int[6] { iYZYSZDL, iEZYSZDL, iSZYSZDL, iSIZYSZDL, iWZYSZDL, iLZYSZDL };   //右轮手制动力  -

            //ZSZDL
            ParaInfos.HAND_FORCE_ALL = 0;  //手制动力和

            //ZCSZDLV
            ParaInfos.ZJ_HAND_SUM_ALL = 0; //手制动率

            //SZDLVBZ
            ParaInfos.ZJ_HAND_SUM_ALL_STD = 20; //手制动标准  -

            //SZDLV_PD
            ParaInfos.ZJ_HAND_SUM_ALL_JUDGE = 0;  //手制动判定

            //ZCZDL
            ParaInfos.BREAK_FORCE_ALL = 0;             //整车制动力

            //ZCZDLV
            ParaInfos.ZJ_BREAK_FORCE_ALL_SUM = 0;      //整车制动率

            //ZCZDLVBZ
            ParaInfos.ZJ_BREAK_FORCE_ALL_SUM_STD = 60;    //整车制动标准  -

            //ZCZDLV_PD
            ParaInfos.ZJ_BREAK_FORCE_ALL_SUM_JUDGE = 0;  //整车制动判定

            //项目判定
            //char strDB_ZDPD[6][20]={"YZZDZ_PD","EZZDZ_PD","SZZDZ_PD","SIZZDZ_PD","WZZDZ_PD","LZZDZ_PD"};
            ParaInfos.ZJ_ITEM_JUDGE = new int[6] { 0, 0, 0, 0, 0, 0 };

            ParaInfos.AXIS_TYPE = new int[6] { 1, 1, 1, 1, 1, 1 }; 

            CalClass cal = new CalClass();
            cal.ComputingResult_ZJ(ParaInfos);

            ConvertToModel(ParaInfos);

            BindBrakeZJTextBoxValue();
        }

        private void ConvertToModel(ParaInfo ParaInfos)
        {
            //静态轮重
            M_RESULT_BRAKE_ZJ.YZZZ = ParaInfos.ZJ_AXIS_WEIGHT[0] == 0 ? M_RESULT_BRAKE_ZJ.YZZZ : ParaInfos.ZJ_AXIS_WEIGHT[0].ToString();
            M_RESULT_BRAKE_ZJ.EZZZ = ParaInfos.ZJ_AXIS_WEIGHT[1] == 0 ? M_RESULT_BRAKE_ZJ.EZZZ : ParaInfos.ZJ_AXIS_WEIGHT[1].ToString();
            M_RESULT_BRAKE_ZJ.SZZZ = ParaInfos.ZJ_AXIS_WEIGHT[2] == 0 ? M_RESULT_BRAKE_ZJ.SZZZ : ParaInfos.ZJ_AXIS_WEIGHT[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZZZ = ParaInfos.ZJ_AXIS_WEIGHT[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZZZ : ParaInfos.ZJ_AXIS_WEIGHT[3].ToString();
            M_RESULT_BRAKE_ZJ.WZZZ = ParaInfos.ZJ_AXIS_WEIGHT[4] == 0 ? M_RESULT_BRAKE_ZJ.WZZZ : ParaInfos.ZJ_AXIS_WEIGHT[4].ToString();
            M_RESULT_BRAKE_ZJ.LZZZ = ParaInfos.ZJ_AXIS_WEIGHT[5] == 0 ? M_RESULT_BRAKE_ZJ.LZZZ : ParaInfos.ZJ_AXIS_WEIGHT[5].ToString();

            M_RESULT_BRAKE_ZJ.YZZLZ = ParaInfos.ZJ_AXIS_WEIGHT_L[0] == 0 ? M_RESULT_BRAKE_ZJ.YZZLZ : ParaInfos.ZJ_AXIS_WEIGHT_L[0].ToString();
            M_RESULT_BRAKE_ZJ.EZZLZ = ParaInfos.ZJ_AXIS_WEIGHT_L[1] == 0 ? M_RESULT_BRAKE_ZJ.EZZLZ : ParaInfos.ZJ_AXIS_WEIGHT_L[1].ToString();
            M_RESULT_BRAKE_ZJ.SZZLZ = ParaInfos.ZJ_AXIS_WEIGHT_L[2] == 0 ? M_RESULT_BRAKE_ZJ.SZZLZ : ParaInfos.ZJ_AXIS_WEIGHT_L[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZZLZ = ParaInfos.ZJ_AXIS_WEIGHT_L[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZZLZ : ParaInfos.ZJ_AXIS_WEIGHT_L[3].ToString();
            M_RESULT_BRAKE_ZJ.WZZLZ = ParaInfos.ZJ_AXIS_WEIGHT_L[4] == 0 ? M_RESULT_BRAKE_ZJ.WZZLZ : ParaInfos.ZJ_AXIS_WEIGHT_L[4].ToString();
            M_RESULT_BRAKE_ZJ.LZZLZ = ParaInfos.ZJ_AXIS_WEIGHT_L[5] == 0 ? M_RESULT_BRAKE_ZJ.LZZLZ : ParaInfos.ZJ_AXIS_WEIGHT_L[5].ToString();

            M_RESULT_BRAKE_ZJ.YZYLZ = ParaInfos.ZJ_AXIS_WEIGHT_R[0] == 0 ? M_RESULT_BRAKE_ZJ.YZYLZ : ParaInfos.ZJ_AXIS_WEIGHT_R[0].ToString();
            M_RESULT_BRAKE_ZJ.EZYLZ = ParaInfos.ZJ_AXIS_WEIGHT_R[1] == 0 ? M_RESULT_BRAKE_ZJ.EZYLZ : ParaInfos.ZJ_AXIS_WEIGHT_R[1].ToString();
            M_RESULT_BRAKE_ZJ.SZYLZ = ParaInfos.ZJ_AXIS_WEIGHT_R[2] == 0 ? M_RESULT_BRAKE_ZJ.SZYLZ : ParaInfos.ZJ_AXIS_WEIGHT_R[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZYLZ = ParaInfos.ZJ_AXIS_WEIGHT_R[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZYLZ : ParaInfos.ZJ_AXIS_WEIGHT_R[3].ToString();
            M_RESULT_BRAKE_ZJ.WZYLZ = ParaInfos.ZJ_AXIS_WEIGHT_R[4] == 0 ? M_RESULT_BRAKE_ZJ.WZYLZ : ParaInfos.ZJ_AXIS_WEIGHT_R[4].ToString();
            M_RESULT_BRAKE_ZJ.LZYLZ = ParaInfos.ZJ_AXIS_WEIGHT_R[5] == 0 ? M_RESULT_BRAKE_ZJ.LZYLZ : ParaInfos.ZJ_AXIS_WEIGHT_R[5].ToString();

            //复合台轮重
            M_RESULT_BRAKE_ZJ.FHTYZZLZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT[0] == 0 ? M_RESULT_BRAKE_ZJ.FHTYZZLZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT[0].ToString();
            M_RESULT_BRAKE_ZJ.FHTEZZZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT[1] == 0 ? M_RESULT_BRAKE_ZJ.FHTEZZZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT[1].ToString();
            M_RESULT_BRAKE_ZJ.FHTSZZZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT[2] == 0 ? M_RESULT_BRAKE_ZJ.FHTSZZZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT[2].ToString();
            M_RESULT_BRAKE_ZJ.FHTSIZZZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT[3] == 0 ? M_RESULT_BRAKE_ZJ.FHTSIZZZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT[3].ToString();
            M_RESULT_BRAKE_ZJ.FHTWZZZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT[4] == 0 ? M_RESULT_BRAKE_ZJ.FHTWZZZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT[4].ToString();
            M_RESULT_BRAKE_ZJ.FHTLZZZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT[5] == 0 ? M_RESULT_BRAKE_ZJ.FHTLZZZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT[5].ToString();

            M_RESULT_BRAKE_ZJ.FHTYZZLZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT_L[0] == 0 ? M_RESULT_BRAKE_ZJ.FHTYZZLZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT_L[0].ToString();
            M_RESULT_BRAKE_ZJ.FHTEZZLZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT_L[1] == 0 ? M_RESULT_BRAKE_ZJ.FHTEZZLZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT_L[1].ToString();
            M_RESULT_BRAKE_ZJ.FHTSZZLZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT_L[2] == 0 ? M_RESULT_BRAKE_ZJ.FHTSZZLZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT_L[2].ToString();
            M_RESULT_BRAKE_ZJ.FHTSIZZLZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT_L[3] == 0 ? M_RESULT_BRAKE_ZJ.FHTSIZZLZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT_L[3].ToString();
            M_RESULT_BRAKE_ZJ.FHTWZZLZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT_L[4] == 0 ? M_RESULT_BRAKE_ZJ.FHTWZZLZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT_L[4].ToString();
            M_RESULT_BRAKE_ZJ.FHTLZZLZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT_L[5] == 0 ? M_RESULT_BRAKE_ZJ.FHTLZZLZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT_L[5].ToString();

            M_RESULT_BRAKE_ZJ.FHTYZYLZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT_R[0] == 0 ? M_RESULT_BRAKE_ZJ.FHTYZYLZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT_R[0].ToString();
            M_RESULT_BRAKE_ZJ.FHTEZYLZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT_R[1] == 0 ? M_RESULT_BRAKE_ZJ.FHTEZYLZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT_R[1].ToString();
            M_RESULT_BRAKE_ZJ.FHTSZYLZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT_R[2] == 0 ? M_RESULT_BRAKE_ZJ.FHTSZYLZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT_R[2].ToString();
            M_RESULT_BRAKE_ZJ.FHTSIZYLZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT_R[3] == 0 ? M_RESULT_BRAKE_ZJ.FHTSIZYLZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT_R[3].ToString();
            M_RESULT_BRAKE_ZJ.FHTWZYLZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT_R[4] == 0 ? M_RESULT_BRAKE_ZJ.FHTWZYLZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT_R[4].ToString();
            M_RESULT_BRAKE_ZJ.FHTLZYLZ = ParaInfos.ZJ_AXIS_WEIGHT_FHT_R[5] == 0 ? M_RESULT_BRAKE_ZJ.FHTLZYLZ : ParaInfos.ZJ_AXIS_WEIGHT_FHT_R[5].ToString();

            //M_RESULT_BRAKE_ZJ.zclz .zlzParaInfos.ZJ_AXIS_WEIGHT_ALL_L
            //左制动力
            M_RESULT_BRAKE_ZJ.YZZZDZDL = ParaInfos.BREAK_FORCE_L[0] == 0 ? M_RESULT_BRAKE_ZJ.YZZZDZDL : ParaInfos.BREAK_FORCE_L[0].ToString();
            M_RESULT_BRAKE_ZJ.EZZZDZDL = ParaInfos.BREAK_FORCE_L[1] == 0 ? M_RESULT_BRAKE_ZJ.EZZZDZDL : ParaInfos.BREAK_FORCE_L[1].ToString();
            M_RESULT_BRAKE_ZJ.SZZZDZDL = ParaInfos.BREAK_FORCE_L[2] == 0 ? M_RESULT_BRAKE_ZJ.SZZZDZDL : ParaInfos.BREAK_FORCE_L[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZZZDZDL = ParaInfos.BREAK_FORCE_L[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZZZDZDL : ParaInfos.BREAK_FORCE_L[3].ToString();
            M_RESULT_BRAKE_ZJ.WZZZDZDL = ParaInfos.BREAK_FORCE_L[4] == 0 ? M_RESULT_BRAKE_ZJ.WZZZDZDL : ParaInfos.BREAK_FORCE_L[4].ToString();
            M_RESULT_BRAKE_ZJ.LZZZDZDL = ParaInfos.BREAK_FORCE_L[5] == 0 ? M_RESULT_BRAKE_ZJ.LZZZDZDL : ParaInfos.BREAK_FORCE_L[5].ToString();

            //右制动力
            M_RESULT_BRAKE_ZJ.YZYZDZDL = ParaInfos.BREAK_FORCE_R[0] == 0 ? M_RESULT_BRAKE_ZJ.YZYZDZDL : ParaInfos.BREAK_FORCE_R[0].ToString();
            M_RESULT_BRAKE_ZJ.EZYZDZDL = ParaInfos.BREAK_FORCE_R[1] == 0 ? M_RESULT_BRAKE_ZJ.EZYZDZDL : ParaInfos.BREAK_FORCE_R[1].ToString();
            M_RESULT_BRAKE_ZJ.SZYZDZDL = ParaInfos.BREAK_FORCE_R[2] == 0 ? M_RESULT_BRAKE_ZJ.SZYZDZDL : ParaInfos.BREAK_FORCE_R[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZYZDZDL = ParaInfos.BREAK_FORCE_R[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZYZDZDL : ParaInfos.BREAK_FORCE_R[3].ToString();
            M_RESULT_BRAKE_ZJ.WZYZDZDL = ParaInfos.BREAK_FORCE_R[4] == 0 ? M_RESULT_BRAKE_ZJ.WZYZDZDL : ParaInfos.BREAK_FORCE_R[4].ToString();
            M_RESULT_BRAKE_ZJ.LZYZDZDL = ParaInfos.BREAK_FORCE_R[5] == 0 ? M_RESULT_BRAKE_ZJ.LZYZDZDL : ParaInfos.BREAK_FORCE_R[5].ToString();

            //和比
            M_RESULT_BRAKE_ZJ.YZZDLV = ParaInfos.ZJ_BREAK_SUM[0] == 0 ? M_RESULT_BRAKE_ZJ.YZZDLV : ParaInfos.ZJ_BREAK_SUM[0].ToString();
            M_RESULT_BRAKE_ZJ.EZZDLV = ParaInfos.ZJ_BREAK_SUM[1] == 0 ? M_RESULT_BRAKE_ZJ.EZZDLV : ParaInfos.ZJ_BREAK_SUM[1].ToString();
            M_RESULT_BRAKE_ZJ.SZZDLV = ParaInfos.ZJ_BREAK_SUM[2] == 0 ? M_RESULT_BRAKE_ZJ.SZZDLV : ParaInfos.ZJ_BREAK_SUM[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZZDLV = ParaInfos.ZJ_BREAK_SUM[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZZDLV : ParaInfos.ZJ_BREAK_SUM[3].ToString();
            M_RESULT_BRAKE_ZJ.WZZDLV = ParaInfos.ZJ_BREAK_SUM[4] == 0 ? M_RESULT_BRAKE_ZJ.WZZDLV : ParaInfos.ZJ_BREAK_SUM[4].ToString();
            M_RESULT_BRAKE_ZJ.LZZDLV = ParaInfos.ZJ_BREAK_SUM[5] == 0 ? M_RESULT_BRAKE_ZJ.LZZDLV : ParaInfos.ZJ_BREAK_SUM[5].ToString();

            M_RESULT_BRAKE_ZJ.YZZDLVBZ = ParaInfos.ZJ_BREAK_SUM_STD[0] == 0 ? M_RESULT_BRAKE_ZJ.YZZDLVBZ : ParaInfos.ZJ_BREAK_SUM_STD[0].ToString();
            M_RESULT_BRAKE_ZJ.EZZDLVBZ = ParaInfos.ZJ_BREAK_SUM_STD[1] == 0 ? M_RESULT_BRAKE_ZJ.EZZDLVBZ : ParaInfos.ZJ_BREAK_SUM_STD[1].ToString();
            M_RESULT_BRAKE_ZJ.SZZDLVBZ = ParaInfos.ZJ_BREAK_SUM_STD[2] == 0 ? M_RESULT_BRAKE_ZJ.SZZDLVBZ : ParaInfos.ZJ_BREAK_SUM_STD[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZZDLVBZ = ParaInfos.ZJ_BREAK_SUM_STD[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZZDLVBZ : ParaInfos.ZJ_BREAK_SUM_STD[3].ToString();
            M_RESULT_BRAKE_ZJ.WZZDLVBZ = ParaInfos.ZJ_BREAK_SUM_STD[4] == 0 ? M_RESULT_BRAKE_ZJ.WZZDLVBZ : ParaInfos.ZJ_BREAK_SUM_STD[4].ToString();
            M_RESULT_BRAKE_ZJ.LZZDLVBZ = ParaInfos.ZJ_BREAK_SUM_STD[5] == 0 ? M_RESULT_BRAKE_ZJ.LZZDLVBZ : ParaInfos.ZJ_BREAK_SUM_STD[5].ToString();

            M_RESULT_BRAKE_ZJ.YZZDLV_PD = ParaInfos.ZJ_BREAK_SUM_JUDGE[0] == 0 ? M_RESULT_BRAKE_ZJ.YZZDLV_PD : ParaInfos.ZJ_BREAK_SUM_JUDGE[0].ToString();
            M_RESULT_BRAKE_ZJ.EZZDLV_PD = ParaInfos.ZJ_BREAK_SUM_JUDGE[1] == 0 ? M_RESULT_BRAKE_ZJ.EZZDLV_PD : ParaInfos.ZJ_BREAK_SUM_JUDGE[1].ToString();
            M_RESULT_BRAKE_ZJ.SZZDLV_PD = ParaInfos.ZJ_BREAK_SUM_JUDGE[2] == 0 ? M_RESULT_BRAKE_ZJ.SZZDLV_PD : ParaInfos.ZJ_BREAK_SUM_JUDGE[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZZDLV_PD = ParaInfos.ZJ_BREAK_SUM_JUDGE[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZZDLV_PD : ParaInfos.ZJ_BREAK_SUM_JUDGE[3].ToString();
            M_RESULT_BRAKE_ZJ.WZZDLV_PD = ParaInfos.ZJ_BREAK_SUM_JUDGE[4] == 0 ? M_RESULT_BRAKE_ZJ.WZZDLV_PD : ParaInfos.ZJ_BREAK_SUM_JUDGE[4].ToString();
            M_RESULT_BRAKE_ZJ.LZZDLV_PD = ParaInfos.ZJ_BREAK_SUM_JUDGE[5] == 0 ? M_RESULT_BRAKE_ZJ.LZZDLV_PD : ParaInfos.ZJ_BREAK_SUM_JUDGE[5].ToString();

            //差比
            M_RESULT_BRAKE_ZJ.YZBPHLV = ParaInfos.ZJ_BREAK_DIF[0] == 0 ? M_RESULT_BRAKE_ZJ.YZBPHLV : ParaInfos.ZJ_BREAK_DIF[0].ToString();
            M_RESULT_BRAKE_ZJ.EZBPHLV = ParaInfos.ZJ_BREAK_DIF[1] == 0 ? M_RESULT_BRAKE_ZJ.EZBPHLV : ParaInfos.ZJ_BREAK_DIF[1].ToString();
            M_RESULT_BRAKE_ZJ.SZBPHLV = ParaInfos.ZJ_BREAK_DIF[2] == 0 ? M_RESULT_BRAKE_ZJ.SZBPHLV : ParaInfos.ZJ_BREAK_DIF[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZBPHLV = ParaInfos.ZJ_BREAK_DIF[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZBPHLV : ParaInfos.ZJ_BREAK_DIF[3].ToString();
            M_RESULT_BRAKE_ZJ.WZBPHLV = ParaInfos.ZJ_BREAK_DIF[4] == 0 ? M_RESULT_BRAKE_ZJ.WZBPHLV : ParaInfos.ZJ_BREAK_DIF[4].ToString();
            M_RESULT_BRAKE_ZJ.LZBPHLV = ParaInfos.ZJ_BREAK_DIF[5] == 0 ? M_RESULT_BRAKE_ZJ.LZBPHLV : ParaInfos.ZJ_BREAK_DIF[5].ToString();

            M_RESULT_BRAKE_ZJ.YZBPHLVBZ = ParaInfos.ZJ_BREAK_DIF_STD[0] == 0 ? M_RESULT_BRAKE_ZJ.YZBPHLVBZ : ParaInfos.ZJ_BREAK_DIF_STD[0].ToString();
            M_RESULT_BRAKE_ZJ.EZBPHLVBZ = ParaInfos.ZJ_BREAK_DIF_STD[1] == 0 ? M_RESULT_BRAKE_ZJ.EZBPHLVBZ : ParaInfos.ZJ_BREAK_DIF_STD[1].ToString();
            M_RESULT_BRAKE_ZJ.SZBPHLVBZ = ParaInfos.ZJ_BREAK_DIF_STD[2] == 0 ? M_RESULT_BRAKE_ZJ.SZBPHLVBZ : ParaInfos.ZJ_BREAK_DIF_STD[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZBPHLVBZ = ParaInfos.ZJ_BREAK_DIF_STD[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZBPHLVBZ : ParaInfos.ZJ_BREAK_DIF_STD[3].ToString();
            M_RESULT_BRAKE_ZJ.WZBPHLVBZ = ParaInfos.ZJ_BREAK_DIF_STD[4] == 0 ? M_RESULT_BRAKE_ZJ.WZBPHLVBZ : ParaInfos.ZJ_BREAK_DIF_STD[4].ToString();
            M_RESULT_BRAKE_ZJ.LZBPHLVBZ = ParaInfos.ZJ_BREAK_DIF_STD[5] == 0 ? M_RESULT_BRAKE_ZJ.LZBPHLVBZ : ParaInfos.ZJ_BREAK_DIF_STD[5].ToString();

            M_RESULT_BRAKE_ZJ.YZBPHLV_PD = ParaInfos.ZJ_BREAK_DIF_JUDGE[0] == 0 ? M_RESULT_BRAKE_ZJ.YZBPHLV_PD : ParaInfos.ZJ_BREAK_DIF_JUDGE[0].ToString();
            M_RESULT_BRAKE_ZJ.EZBPHLV_PD = ParaInfos.ZJ_BREAK_DIF_JUDGE[1] == 0 ? M_RESULT_BRAKE_ZJ.EZBPHLV_PD : ParaInfos.ZJ_BREAK_DIF_JUDGE[1].ToString();
            M_RESULT_BRAKE_ZJ.SZBPHLV_PD = ParaInfos.ZJ_BREAK_DIF_JUDGE[2] == 0 ? M_RESULT_BRAKE_ZJ.SZBPHLV_PD : ParaInfos.ZJ_BREAK_DIF_JUDGE[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZBPHLV_PD = ParaInfos.ZJ_BREAK_DIF_JUDGE[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZBPHLV_PD : ParaInfos.ZJ_BREAK_DIF_JUDGE[3].ToString();
            M_RESULT_BRAKE_ZJ.WZBPHLV_PD = ParaInfos.ZJ_BREAK_DIF_JUDGE[4] == 0 ? M_RESULT_BRAKE_ZJ.WZBPHLV_PD : ParaInfos.ZJ_BREAK_DIF_JUDGE[4].ToString();
            M_RESULT_BRAKE_ZJ.LZBPHLV_PD = ParaInfos.ZJ_BREAK_DIF_JUDGE[5] == 0 ? M_RESULT_BRAKE_ZJ.LZBPHLV_PD : ParaInfos.ZJ_BREAK_DIF_JUDGE[5].ToString();

            ////阻滞力
            M_RESULT_BRAKE_ZJ.YZZZZL = ParaInfos.ZJ_BLOCK_FORCE_L[0] == 0 ? M_RESULT_BRAKE_ZJ.YZZZZL : ParaInfos.ZJ_BLOCK_FORCE_L[0].ToString();
            M_RESULT_BRAKE_ZJ.EZZZZL = ParaInfos.ZJ_BLOCK_FORCE_L[1] == 0 ? M_RESULT_BRAKE_ZJ.EZZZZL : ParaInfos.ZJ_BLOCK_FORCE_L[1].ToString();
            M_RESULT_BRAKE_ZJ.SZZZZL = ParaInfos.ZJ_BLOCK_FORCE_L[2] == 0 ? M_RESULT_BRAKE_ZJ.SZZZZL : ParaInfos.ZJ_BLOCK_FORCE_L[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZZZZL = ParaInfos.ZJ_BLOCK_FORCE_L[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZZZZL : ParaInfos.ZJ_BLOCK_FORCE_L[3].ToString();
            M_RESULT_BRAKE_ZJ.WZZZZL = ParaInfos.ZJ_BLOCK_FORCE_L[4] == 0 ? M_RESULT_BRAKE_ZJ.WZZZZL : ParaInfos.ZJ_BLOCK_FORCE_L[4].ToString();
            M_RESULT_BRAKE_ZJ.LZZZZL = ParaInfos.ZJ_BLOCK_FORCE_L[5] == 0 ? M_RESULT_BRAKE_ZJ.LZZZZL : ParaInfos.ZJ_BLOCK_FORCE_L[5].ToString();

            M_RESULT_BRAKE_ZJ.YZYZZL = ParaInfos.ZJ_BLOCK_FORCE_R[0] == 0 ? M_RESULT_BRAKE_ZJ.YZYZZL : ParaInfos.ZJ_BLOCK_FORCE_R[0].ToString();
            M_RESULT_BRAKE_ZJ.EZYZZL = ParaInfos.ZJ_BLOCK_FORCE_R[1] == 0 ? M_RESULT_BRAKE_ZJ.EZYZZL : ParaInfos.ZJ_BLOCK_FORCE_R[1].ToString();
            M_RESULT_BRAKE_ZJ.SZYZZL = ParaInfos.ZJ_BLOCK_FORCE_R[2] == 0 ? M_RESULT_BRAKE_ZJ.SZYZZL : ParaInfos.ZJ_BLOCK_FORCE_R[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZYZZL = ParaInfos.ZJ_BLOCK_FORCE_R[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZYZZL : ParaInfos.ZJ_BLOCK_FORCE_R[3].ToString();
            M_RESULT_BRAKE_ZJ.WZYZZL = ParaInfos.ZJ_BLOCK_FORCE_R[4] == 0 ? M_RESULT_BRAKE_ZJ.WZYZZL : ParaInfos.ZJ_BLOCK_FORCE_R[4].ToString();
            M_RESULT_BRAKE_ZJ.LZYZZL = ParaInfos.ZJ_BLOCK_FORCE_R[5] == 0 ? M_RESULT_BRAKE_ZJ.LZYZZL : ParaInfos.ZJ_BLOCK_FORCE_R[5].ToString();

            //阻滞率
            M_RESULT_BRAKE_ZJ.YZZZZLV = ParaInfos.ZJ_BLOCK_SUM_L[0] == 0 ? M_RESULT_BRAKE_ZJ.YZZZZLV : ParaInfos.ZJ_BLOCK_SUM_L[0].ToString();
            M_RESULT_BRAKE_ZJ.EZZZZLV = ParaInfos.ZJ_BLOCK_SUM_L[1] == 0 ? M_RESULT_BRAKE_ZJ.EZZZZLV : ParaInfos.ZJ_BLOCK_SUM_L[1].ToString();
            M_RESULT_BRAKE_ZJ.SZZZZLV = ParaInfos.ZJ_BLOCK_SUM_L[2] == 0 ? M_RESULT_BRAKE_ZJ.SZZZZLV : ParaInfos.ZJ_BLOCK_SUM_L[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZZZZLV = ParaInfos.ZJ_BLOCK_SUM_L[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZZZZLV : ParaInfos.ZJ_BLOCK_SUM_L[3].ToString();
            M_RESULT_BRAKE_ZJ.WZZZZLV = ParaInfos.ZJ_BLOCK_SUM_L[4] == 0 ? M_RESULT_BRAKE_ZJ.WZZZZLV : ParaInfos.ZJ_BLOCK_SUM_L[4].ToString();
            M_RESULT_BRAKE_ZJ.LZZZZLV = ParaInfos.ZJ_BLOCK_SUM_L[5] == 0 ? M_RESULT_BRAKE_ZJ.LZZZZLV : ParaInfos.ZJ_BLOCK_SUM_L[5].ToString();

            //
            M_RESULT_BRAKE_ZJ.YZYZZLV = ParaInfos.ZJ_BLOCK_SUM_R[0] == 0 ? M_RESULT_BRAKE_ZJ.YZYZZLV : ParaInfos.ZJ_BLOCK_SUM_R[0].ToString();
            M_RESULT_BRAKE_ZJ.EZYZZLV = ParaInfos.ZJ_BLOCK_SUM_R[1] == 0 ? M_RESULT_BRAKE_ZJ.EZYZZLV : ParaInfos.ZJ_BLOCK_SUM_R[1].ToString();
            M_RESULT_BRAKE_ZJ.SZYZZLV = ParaInfos.ZJ_BLOCK_SUM_R[2] == 0 ? M_RESULT_BRAKE_ZJ.SZYZZLV : ParaInfos.ZJ_BLOCK_SUM_R[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZYZZLV = ParaInfos.ZJ_BLOCK_SUM_R[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZYZZLV : ParaInfos.ZJ_BLOCK_SUM_R[3].ToString();
            M_RESULT_BRAKE_ZJ.WZYZZLV = ParaInfos.ZJ_BLOCK_SUM_R[4] == 0 ? M_RESULT_BRAKE_ZJ.WZYZZLV : ParaInfos.ZJ_BLOCK_SUM_R[4].ToString();
            M_RESULT_BRAKE_ZJ.LZYZZLV = ParaInfos.ZJ_BLOCK_SUM_R[5] == 0 ? M_RESULT_BRAKE_ZJ.LZYZZLV : ParaInfos.ZJ_BLOCK_SUM_R[5].ToString();

            M_RESULT_BRAKE_ZJ.YZZZZL_PD = ParaInfos.ZJ_BLOCK_SUM_L_JUDGE[0] == 0 ? M_RESULT_BRAKE_ZJ.YZZZZL_PD : ParaInfos.ZJ_BLOCK_SUM_L_JUDGE[0].ToString();
            M_RESULT_BRAKE_ZJ.EZZZZL_PD = ParaInfos.ZJ_BLOCK_SUM_L_JUDGE[1] == 0 ? M_RESULT_BRAKE_ZJ.EZZZZL_PD : ParaInfos.ZJ_BLOCK_SUM_L_JUDGE[1].ToString();
            M_RESULT_BRAKE_ZJ.SZZZZL_PD = ParaInfos.ZJ_BLOCK_SUM_L_JUDGE[2] == 0 ? M_RESULT_BRAKE_ZJ.SZZZZL_PD : ParaInfos.ZJ_BLOCK_SUM_L_JUDGE[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZZZZL_PD = ParaInfos.ZJ_BLOCK_SUM_L_JUDGE[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZZZZL_PD : ParaInfos.ZJ_BLOCK_SUM_L_JUDGE[3].ToString();
            M_RESULT_BRAKE_ZJ.WZZZZL_PD = ParaInfos.ZJ_BLOCK_SUM_L_JUDGE[4] == 0 ? M_RESULT_BRAKE_ZJ.WZZZZL_PD : ParaInfos.ZJ_BLOCK_SUM_L_JUDGE[4].ToString();
            M_RESULT_BRAKE_ZJ.LZZZZL_PD = ParaInfos.ZJ_BLOCK_SUM_L_JUDGE[5] == 0 ? M_RESULT_BRAKE_ZJ.LZZZZL_PD : ParaInfos.ZJ_BLOCK_SUM_L_JUDGE[5].ToString();

            M_RESULT_BRAKE_ZJ.YZYZZL_PD = ParaInfos.ZJ_BLOCK_SUM_R_JUDGE[0] == 0 ? M_RESULT_BRAKE_ZJ.YZYZZL_PD : ParaInfos.ZJ_BLOCK_SUM_R_JUDGE[0].ToString();
            M_RESULT_BRAKE_ZJ.EZYZZL_PD = ParaInfos.ZJ_BLOCK_SUM_R_JUDGE[1] == 0 ? M_RESULT_BRAKE_ZJ.EZYZZL_PD : ParaInfos.ZJ_BLOCK_SUM_R_JUDGE[1].ToString();
            M_RESULT_BRAKE_ZJ.SZYZZL_PD = ParaInfos.ZJ_BLOCK_SUM_R_JUDGE[2] == 0 ? M_RESULT_BRAKE_ZJ.SZYZZL_PD : ParaInfos.ZJ_BLOCK_SUM_R_JUDGE[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZYZZL_PD = ParaInfos.ZJ_BLOCK_SUM_R_JUDGE[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZYZZL_PD : ParaInfos.ZJ_BLOCK_SUM_R_JUDGE[3].ToString();
            M_RESULT_BRAKE_ZJ.WZYZZL_PD = ParaInfos.ZJ_BLOCK_SUM_R_JUDGE[4] == 0 ? M_RESULT_BRAKE_ZJ.WZYZZL_PD : ParaInfos.ZJ_BLOCK_SUM_R_JUDGE[4].ToString();
            M_RESULT_BRAKE_ZJ.LZYZZL_PD = ParaInfos.ZJ_BLOCK_SUM_R_JUDGE[5] == 0 ? M_RESULT_BRAKE_ZJ.LZYZZL_PD : ParaInfos.ZJ_BLOCK_SUM_R_JUDGE[5].ToString();

            //手制动力
            M_RESULT_BRAKE_ZJ.YZSZDL = ParaInfos.HAND_FORCE[0] == 0 ? M_RESULT_BRAKE_ZJ.YZSZDL : ParaInfos.HAND_FORCE[0].ToString();
            M_RESULT_BRAKE_ZJ.EZSZDL = ParaInfos.HAND_FORCE[1] == 0 ? M_RESULT_BRAKE_ZJ.EZSZDL : ParaInfos.HAND_FORCE[1].ToString();
            M_RESULT_BRAKE_ZJ.SZSZDL = ParaInfos.HAND_FORCE[2] == 0 ? M_RESULT_BRAKE_ZJ.SZSZDL : ParaInfos.HAND_FORCE[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZSZDL = ParaInfos.HAND_FORCE[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZSZDL : ParaInfos.HAND_FORCE[3].ToString();
            M_RESULT_BRAKE_ZJ.WZSZDL = ParaInfos.HAND_FORCE[4] == 0 ? M_RESULT_BRAKE_ZJ.WZSZDL : ParaInfos.HAND_FORCE[4].ToString();
            M_RESULT_BRAKE_ZJ.LZSZDL = ParaInfos.HAND_FORCE[5] == 0 ? M_RESULT_BRAKE_ZJ.LZSZDL : ParaInfos.HAND_FORCE[5].ToString();

            M_RESULT_BRAKE_ZJ.YZZSZDL = ParaInfos.HAND_FORCE_L[0] == 0 ? M_RESULT_BRAKE_ZJ.YZZSZDL : ParaInfos.HAND_FORCE_L[0].ToString();
            M_RESULT_BRAKE_ZJ.EZZSZDL = ParaInfos.HAND_FORCE_L[1] == 0 ? M_RESULT_BRAKE_ZJ.EZZSZDL : ParaInfos.HAND_FORCE_L[1].ToString();
            M_RESULT_BRAKE_ZJ.SZZSZDL = ParaInfos.HAND_FORCE_L[2] == 0 ? M_RESULT_BRAKE_ZJ.SZZSZDL : ParaInfos.HAND_FORCE_L[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZZSZDL = ParaInfos.HAND_FORCE_L[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZZSZDL : ParaInfos.HAND_FORCE_L[3].ToString();
            M_RESULT_BRAKE_ZJ.WZZSZDL = ParaInfos.HAND_FORCE_L[4] == 0 ? M_RESULT_BRAKE_ZJ.WZZSZDL : ParaInfos.HAND_FORCE_L[4].ToString();
            M_RESULT_BRAKE_ZJ.LZZSZDL = ParaInfos.HAND_FORCE_L[5] == 0 ? M_RESULT_BRAKE_ZJ.LZZSZDL : ParaInfos.HAND_FORCE_L[5].ToString();

            M_RESULT_BRAKE_ZJ.YZYSZDL = ParaInfos.HAND_FORCE_R[0] == 0 ? M_RESULT_BRAKE_ZJ.YZYSZDL : ParaInfos.HAND_FORCE_R[0].ToString();
            M_RESULT_BRAKE_ZJ.EZYSZDL = ParaInfos.HAND_FORCE_R[1] == 0 ? M_RESULT_BRAKE_ZJ.EZYSZDL : ParaInfos.HAND_FORCE_R[1].ToString();
            M_RESULT_BRAKE_ZJ.SZYSZDL = ParaInfos.HAND_FORCE_R[2] == 0 ? M_RESULT_BRAKE_ZJ.SZYSZDL : ParaInfos.HAND_FORCE_R[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZYSZDL = ParaInfos.HAND_FORCE_R[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZYSZDL : ParaInfos.HAND_FORCE_R[3].ToString();
            M_RESULT_BRAKE_ZJ.WZYSZDL = ParaInfos.HAND_FORCE_R[4] == 0 ? M_RESULT_BRAKE_ZJ.WZYSZDL : ParaInfos.HAND_FORCE_R[4].ToString();
            M_RESULT_BRAKE_ZJ.LZYSZDL = ParaInfos.HAND_FORCE_R[5] == 0 ? M_RESULT_BRAKE_ZJ.LZYSZDL : ParaInfos.HAND_FORCE_R[5].ToString();

            M_RESULT_BRAKE_ZJ.YZZDZ_PD = ParaInfos.ZJ_ITEM_JUDGE[0] == 0 ? M_RESULT_BRAKE_ZJ.YZZDZ_PD : ParaInfos.ZJ_ITEM_JUDGE[0].ToString();
            M_RESULT_BRAKE_ZJ.EZZDZ_PD = ParaInfos.ZJ_ITEM_JUDGE[1] == 0 ? M_RESULT_BRAKE_ZJ.EZZDZ_PD : ParaInfos.ZJ_ITEM_JUDGE[1].ToString();
            M_RESULT_BRAKE_ZJ.SZZDZ_PD = ParaInfos.ZJ_ITEM_JUDGE[2] == 0 ? M_RESULT_BRAKE_ZJ.SZZDZ_PD : ParaInfos.ZJ_ITEM_JUDGE[2].ToString();
            M_RESULT_BRAKE_ZJ.SIZZDZ_PD = ParaInfos.ZJ_ITEM_JUDGE[3] == 0 ? M_RESULT_BRAKE_ZJ.SIZZDZ_PD : ParaInfos.ZJ_ITEM_JUDGE[3].ToString();
            M_RESULT_BRAKE_ZJ.WZZDZ_PD = ParaInfos.ZJ_ITEM_JUDGE[4] == 0 ? M_RESULT_BRAKE_ZJ.WZZDZ_PD : ParaInfos.ZJ_ITEM_JUDGE[4].ToString();
            M_RESULT_BRAKE_ZJ.LZZDZ_PD = ParaInfos.ZJ_ITEM_JUDGE[5] == 0 ? M_RESULT_BRAKE_ZJ.LZZDZ_PD : ParaInfos.ZJ_ITEM_JUDGE[5].ToString();

            M_RESULT_BRAKE_ZJ.ZCZZ = ParaInfos.ZJ_AXIS_WEIGHT_ALL.ToString();
            M_RESULT_BRAKE_ZJ.ZCZDL = ParaInfos.BREAK_FORCE_ALL.ToString();
            M_RESULT_BRAKE_ZJ.ZSZDL = ParaInfos.HAND_FORCE_ALL.ToString();
            M_RESULT_BRAKE_ZJ.ZCSZDLV = ParaInfos.ZJ_HAND_SUM_ALL.ToString();
            M_RESULT_BRAKE_ZJ.SZDLV_PD = ParaInfos.ZJ_HAND_SUM_ALL_JUDGE.ToString();
            M_RESULT_BRAKE_ZJ.SZDLVBZ = ParaInfos.ZJ_HAND_SUM_ALL_STD.ToString();
            M_RESULT_BRAKE_ZJ.ZCZDLV = ParaInfos.ZJ_BREAK_FORCE_ALL_SUM.ToString();


            //M_RESULT_BRAKE_ZJ.EZBPHLV = ParaInfos.
            //ParaInfos.BREAK_FORCE_ALL 
        }


        #region 得到相关信息，把相关信息放入实体中
        private void GetBrakeZJDataTables()
        {
            RESULT_BRAKE_ZJ_BLL brake_bll = new RESULT_BRAKE_ZJ_BLL();

            RESULT_BRAKE_ZJ C_RESULT_BRAKE_ZJ = new RESULT_BRAKE_ZJ();
            int iCur = 0;
            foreach (var v in lstJCLSH)
            {
                C_RESULT_BRAKE_ZJ = brake_bll.GetModel(v);
                if (iCur == 0)
                {
                    M_RESULT_BRAKE_ZJ = C_RESULT_BRAKE_ZJ;
                }
                iCur++;

                Type t = C_RESULT_BRAKE_ZJ.GetType();

                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(C_RESULT_BRAKE_ZJ, null);
                    string name = pi.Name;

                    if (string.IsNullOrEmpty(retValue.ToString()) == false)
                    {
                        Type Ts = M_RESULT_BRAKE_ZJ.GetType();
                        object obj1 = Convert.ChangeType(retValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_BRAKE_ZJ, obj1, null);
                    }
                }
            }
        }

        private void GetLampZJDataTables()
        {
            RESULT_LAMP_ZJ_BLL lamp_bll = new RESULT_LAMP_ZJ_BLL();
            RESULT_LAMP_ZJ C_RESULT_LAMP_ZJ = new RESULT_LAMP_ZJ();
            int iCur = 0;
            foreach (var v in lstJCLSH)
            {
                C_RESULT_LAMP_ZJ = lamp_bll.GetModel(v);
                if (iCur == 0)
                {
                    M_RESULT_LAMP_ZJ = C_RESULT_LAMP_ZJ;
                }
                iCur++;

                Type t = C_RESULT_LAMP_ZJ.GetType();

                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(C_RESULT_LAMP_ZJ, null);
                    string name = pi.Name;

                    if (string.IsNullOrEmpty(retValue.ToString()) == false)
                    {
                        Type Ts = M_RESULT_LAMP_ZJ.GetType();
                        object obj1 = Convert.ChangeType(retValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_LAMP_ZJ, obj1, null);
                    }
                }
            }
        }

        private void GetBaseZJDataTables()
        {
            RESULT_VEHICLE_INFO_BLL info_bll = new RESULT_VEHICLE_INFO_BLL();

            RESULT_VEHICLE_INFO C_RESULT_VEHICLE_INFO = new RESULT_VEHICLE_INFO();
            int iCur = 0;
            foreach (var v in lstJCLSH)
            {
                C_RESULT_VEHICLE_INFO = info_bll.GetModel(v);
                if (iCur == 0)
                {
                    M_RESULT_VEHICLE_INFO = C_RESULT_VEHICLE_INFO;
                }
                iCur++;

                Type t = C_RESULT_VEHICLE_INFO.GetType();

                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(C_RESULT_VEHICLE_INFO, null);
                    string name = pi.Name;

                    if (string.IsNullOrEmpty(retValue.ToString()) == false)
                    {
                        Type Ts = M_RESULT_VEHICLE_INFO.GetType();

                        object obj1 = SD_ChanageType(retValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_VEHICLE_INFO, obj1, null);
                    }
                }
            }
        }

        private void GetDPCGZJDataTables()
        {
            RESULT_DPCG_BLL dp_bll = new RESULT_DPCG_BLL();

            RESULT_DPCG C_RESULT_DPCG = new RESULT_DPCG();
            int iCur = 0;
            foreach (var v in lstJCLSH)
            {
                C_RESULT_DPCG = dp_bll.GetModel(v);
                if (iCur == 0)
                {
                    M_RESULT_DPCG = C_RESULT_DPCG;
                }
                iCur++;

                Type t = C_RESULT_DPCG.GetType();

                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(C_RESULT_DPCG, null);
                    string name = pi.Name;

                    if (string.IsNullOrEmpty(retValue.ToString()) == false)
                    {
                        Type Ts = M_RESULT_DPCG.GetType();

                        object obj1 = SD_ChanageType(retValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_DPCG, obj1, null);
                    }
                }
            }
        }

        private void GetRoadZJDataTables()
        {
            try
            {
                RESULT_ROAD_BLL ls_bll = new RESULT_ROAD_BLL();

                RESULT_ROAD C_RESULT_ROAD = new RESULT_ROAD();
                int iCur = 0;
                foreach (var v in lstJCLSH)
                {
                    C_RESULT_ROAD = ls_bll.GetModel(v);
                    if (iCur == 0)
                    {
                        M_RESULT_ROAD = C_RESULT_ROAD;
                    }
                    iCur++;

                    Type t = C_RESULT_ROAD.GetType();

                    foreach (PropertyInfo pi in t.GetProperties())
                    {
                        object retValue = pi.GetValue(C_RESULT_ROAD, null);
                        string name = pi.Name;
                        try
                        {
                            if (string.IsNullOrEmpty(retValue.ToString()) == false)
                            {

                                Type Ts = M_RESULT_ROAD.GetType();

                                object obj1 = SD_ChanageType(retValue.ToString(), Ts.GetProperty(name).PropertyType);
                                Ts.GetProperty(name).SetValue(M_RESULT_ROAD, obj1, null);
                            }

                        }
                        catch (Exception ex) { }
                    }
                }
            }
            catch (Exception ex)
            { }
        }

        private void GetSDSZJDataTables()
        {
            RESULT_SDS_BLL sds_bll = new RESULT_SDS_BLL();
            RESULT_SDS C_RESULT_SDS = new RESULT_SDS();
            int iCur = 0;
            foreach(var v in lstJCLSH)
            {
                C_RESULT_SDS = sds_bll.GetModel(v);
                if(iCur==0)
                {
                    M_RESULT_SDS = C_RESULT_SDS;
                
                }
                iCur++;
                Type t = C_RESULT_SDS.GetType();
                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(C_RESULT_SDS, null);
                    string name = pi.Name;

                    if (string.IsNullOrEmpty(retValue.ToString()) == false)
                    {
                        Type Ts = M_RESULT_SDS.GetType();

                        object obj1 = SD_ChanageType(retValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_SDS, obj1, null);
                    }
                }


            
            }

        
        }

        private void GetLDZJDataTables()
        {
            RESULT_LD_BLL ld_bll = new RESULT_LD_BLL();
            RESULT_LD C_RESULT_LD = new RESULT_LD();
            int iCur = 0;
            foreach (var v in lstJCLSH)
            {
                C_RESULT_LD = ld_bll.GetModel(v);
                if (iCur == 0)
                {
                    M_RESULT_LD = C_RESULT_LD;

                }
                iCur++;
                Type t = C_RESULT_LD.GetType();
                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(C_RESULT_LD, null);
                    string name = pi.Name;

                    if (string.IsNullOrEmpty(retValue.ToString()) == false)
                    {
                        Type Ts = M_RESULT_LD.GetType();

                        object obj1 = SD_ChanageType(retValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_LD, obj1, null);
                    }
                }



            }
        
        
        }

        private void GetASMDataTables()
        {
            RESULT_ASM_BLL asm_bll = new RESULT_ASM_BLL();
            RESULT_ASM C_RESULT_ASM = new RESULT_ASM();
            int iCur = 0;
            foreach (var v in lstJCLSH)
            {
                C_RESULT_ASM = asm_bll.GetModel(v);
                if (iCur == 0)
                {
                    M_RESULT_ASM = C_RESULT_ASM;

                }
                iCur++;
                Type t = C_RESULT_ASM.GetType();
                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(C_RESULT_ASM, null);
                    string name = pi.Name;

                    if (string.IsNullOrEmpty(retValue.ToString()) == false)
                    {
                        Type Ts = M_RESULT_ASM.GetType();

                        object obj1 = SD_ChanageType(retValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_ASM, obj1, null);
                    }
                }



            }
        }

        private void GetZYJSDataTables()
        {
            RESULT_ZYJS_BLL zyjs_bll = new RESULT_ZYJS_BLL();
            RESULT_ZYJS C_RESULT_ZYJS = new RESULT_ZYJS();
            int iCur = 0;
            foreach (var v in lstJCLSH)
            {
                C_RESULT_ZYJS = zyjs_bll.GetModel(v);
                if (iCur == 0)
                {
                    M_RESULT_ZYJS = C_RESULT_ZYJS;

                }
                iCur++;
                Type t = C_RESULT_ZYJS.GetType();
                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(C_RESULT_ZYJS, null);
                    string name = pi.Name;

                    if (string.IsNullOrEmpty(retValue.ToString()) == false)
                    {
                        Type Ts = M_RESULT_ZYJS.GetType();

                        object obj1 = SD_ChanageType(retValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_ZYJS, obj1, null);
                    }
                }



            }
        }

        private void GetVMASDataTables()
        {
            RESULT_VMAS_BLL zyjs_bll = new RESULT_VMAS_BLL();
            RESULT_VMAS C_RESULT_VMAS = new RESULT_VMAS();
            int iCur = 0;
            foreach (var v in lstJCLSH)
            {
                C_RESULT_VMAS = zyjs_bll.GetModel(v);
                if (iCur == 0)
                {
                    M_RESULT_VMAS = C_RESULT_VMAS;

                }
                iCur++;
                Type t = C_RESULT_VMAS.GetType();
                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(C_RESULT_VMAS, null);
                    string name = pi.Name;

                    if (string.IsNullOrEmpty(retValue.ToString()) == false)
                    {
                        Type Ts = M_RESULT_VMAS.GetType();

                        object obj1 = SD_ChanageType(retValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_VMAS, obj1, null);
                    }
                }



            }
        
        }

        private void GetSPEEDDataTables()
        {
            RESULT_SPEED_BLL speed_bll = new RESULT_SPEED_BLL();
            RESULT_SPEED C_RESULT_SPEED = new RESULT_SPEED();
            int iCur = 0;
            foreach (var v in lstJCLSH)
            {
                C_RESULT_SPEED = speed_bll.GetModel(v);
                if (iCur == 0)
                {
                    M_RESULT_SPEED = C_RESULT_SPEED;

                }
                iCur++;
                Type t = C_RESULT_SPEED.GetType();
                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(C_RESULT_SPEED, null);
                    string name = pi.Name;

                    if (string.IsNullOrEmpty(retValue.ToString()) == false)
                    {
                        Type Ts = M_RESULT_SPEED.GetType();

                        object obj1 = SD_ChanageType(retValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_SPEED, obj1, null);
                    }
                }



            }
        
        }

        private void GetSPEAKERDataTables()
        {
            RESULT_SPEAKER_BLL speaker_bll = new RESULT_SPEAKER_BLL();
            RESULT_SPEAKER C_RESULT_SPEAKER = new RESULT_SPEAKER();
            int iCur = 0;
            foreach (var v in lstJCLSH)
            {
                C_RESULT_SPEAKER = speaker_bll.GetModel(v);
                if (iCur == 0)
                {
                    M_RESULT_SPEAKER = C_RESULT_SPEAKER;

                }
                iCur++;
                Type t = C_RESULT_SPEAKER.GetType();
                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(C_RESULT_SPEAKER, null);
                    string name = pi.Name;

                    if (string.IsNullOrEmpty(retValue.ToString()) == false)
                    {
                        Type Ts = M_RESULT_SPEAKER.GetType();

                        object obj1 = SD_ChanageType(retValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_SPEAKER, obj1, null);
                    }
                }



            }
        
        }

        private void GetSIDESLIPDataTables()
        {
            RESULT_SIDESLIP_BLL speaker_bll = new RESULT_SIDESLIP_BLL();
            RESULT_SIDESLIP C_RESULT_SIDESLIP = new RESULT_SIDESLIP();
            int iCur = 0;
            foreach (var v in lstJCLSH)
            {
                C_RESULT_SIDESLIP = speaker_bll.GetModel(v);
                if (iCur == 0)
                {
                    M_RESULT_SIDESLIP = C_RESULT_SIDESLIP;

                }
                iCur++;
                Type t = C_RESULT_SIDESLIP.GetType();
                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(C_RESULT_SIDESLIP, null);
                    string name = pi.Name;

                    if (string.IsNullOrEmpty(retValue.ToString()) == false)
                    {
                        Type Ts = M_RESULT_SIDESLIP.GetType();

                        object obj1 = SD_ChanageType(retValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_SIDESLIP, obj1, null);
                    }
                }



            }
        
        
        }

        private void GetSUSPENSIONDataTables()
        {
            RESULT_SUSPENSION_BLL speaker_bll = new RESULT_SUSPENSION_BLL();
            RESULT_SUSPENSION C_RESULT_SUSPENSION = new RESULT_SUSPENSION();
            int iCur = 0;
            foreach (var v in lstJCLSH)
            {
                C_RESULT_SUSPENSION = speaker_bll.GetModel(v);
                if (iCur == 0)
                {
                    M_RESULT_SUSPENSION = C_RESULT_SUSPENSION;

                }
                iCur++;
                Type t = C_RESULT_SUSPENSION.GetType();
                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(C_RESULT_SUSPENSION, null);
                    string name = pi.Name;

                    if (string.IsNullOrEmpty(retValue.ToString()) == false)
                    {
                        Type Ts = M_RESULT_SUSPENSION.GetType();

                        object obj1 = SD_ChanageType(retValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_SUSPENSION, obj1, null);
                    }
                }



            }
        
        
        
        }

        #endregion

        public object SD_ChanageType(object value, Type convertsionType)
        {
            //判断convertsionType类型是否为泛型，因为nullable是泛型类,
            if (convertsionType.IsGenericType &&
                //判断convertsionType是否为nullable泛型类
                convertsionType.GetGenericTypeDefinition().Equals(typeof(Nullable<>)))
            {
                if (value == null || value.ToString().Length == 0)
                {
                    return null;
                }

                //如果convertsionType为nullable类，声明一个NullableConverter类，该类提供从Nullable类到基础基元类型的转换
                NullableConverter nullableConverter = new NullableConverter(convertsionType);
                //将convertsionType转换为nullable对的基础基元类型
                convertsionType = nullableConverter.UnderlyingType;
            }
            return Convert.ChangeType(value, convertsionType);
        }

        #region 绑定每一个Tab的控件
        private void BindBrakeZJTextBoxValue()
        {
            Type Ts = M_RESULT_BRAKE_ZJ.GetType();
            foreach (PropertyInfo pi in Ts.GetProperties())
            {
                object retValue = pi.GetValue(M_RESULT_BRAKE_ZJ, null);
                string name = pi.Name;

                for (int i = 0; i < this.tabBrake.Controls.Count; i++)
                {
                    if (this.tabBrake.Controls[i] is TextBox)
                    {
                        TextBox txt = (TextBox)this.tabBrake.Controls[i];
                        if (txt.Tag != null && txt.Tag.ToString() == name)
                        {
                            txt.Text = retValue.ToString();

                            #region 左阻滞率
                            if (name == "YZZZZLV")
                            {//一轴不平衡率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.YZZZZL_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.YZZZZL_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "EZZZZLV")
                            {//2轴不平衡率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.EZZZZL_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.EZZZZL_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "SZZZZLV")
                            {//3轴不平衡率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SZZZZL_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.SZZZZL_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "SIZZZZLV")
                            {//4轴不平衡率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SIZZZZL_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.SIZZZZL_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "WZZZZLV")
                            {//5轴不平衡率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.WZZZZL_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.WZZZZL_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "LZZZZLV")
                            {//6轴不平衡率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.LZZZZL_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.LZZZZL_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }
                            #endregion

                            #region 右阻滞率
                            if (name == "YZYZZLV")
                            {//1轮右阻滞率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.YZYZZL_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.YZYZZL_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "EZYZZLV")
                            {//2轮右阻滞率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.EZYZZL_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.EZYZZL_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "SZYZZLV")
                            {//3轮右阻滞率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SZYZZL_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.SZYZZL_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "SIZYZZLV")
                            {//4轮右阻滞率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SIZYZZL_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.SIZYZZL_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "WZYZZLV")
                            {//5轮右阻滞率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.WZYZZL_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.WZYZZL_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "LZYZZLV")
                            {//6轮右阻滞率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.LZYZZL_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.LZYZZL_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            #endregion

                            #region 判断不平衡率
                            if (name == "YZBPHLV")
                            {//一轴不平衡率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.YZBPHLV_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.YZBPHLV_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "EZBPHLV")
                            {//二轴不平衡率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.EZBPHLV_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.EZBPHLV_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "SZBPHLV")
                            {//三轴不平衡率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SZBPHLV_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.SZBPHLV_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "SIZBPHLV")
                            {//四轴不平衡率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SIZBPHLV_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.SIZBPHLV_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "WZBPHLV")
                            {//五轴不平衡率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.WZBPHLV_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.WZBPHLV_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "LZBPHLV")
                            {//六轴不平衡率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.LZBPHLV_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.LZBPHLV_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }
                            #endregion

                            #region 判断制动率
                            if (name == "YZZDLV")
                            {//一轴制动率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.YZZDLV_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.YZZDLV_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "EZZDLV")
                            {//二轴制动率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.EZZDLV_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.EZZDLV_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "SZZDLV")
                            {//三轴制动率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SZZDLV_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.SZZDLV_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "SIZZDLV")
                            {//四轴制动率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SIZZDLV_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.SIZZDLV_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "WZZDLV")
                            {//五轴制动率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.WZZDLV_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.WZZDLV_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "LZZDLV")
                            {//六轴制动率
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.LZZDLV_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.LZZDLV_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }
                            #endregion

                            #region 整车和驻车
                            if (name == "ZCZDLV")
                            {//整车
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.ZCZDLV_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.ZCZDLV_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }

                            if (name == "ZCSZDLV")
                            {//驻车
                                if (string.IsNullOrEmpty(M_RESULT_BRAKE_ZJ.SZDLV_PD) == false && Convert.ToInt32(M_RESULT_BRAKE_ZJ.SZDLV_PD) == 2)
                                {
                                    txt.BackColor = Color.Red;
                                }
                                else
                                {
                                    txt.BackColor = Color.White;
                                }
                            }
                            #endregion
                        }
                    }
                }
            }
        }

        private void BindLampZJTextBoxValue()
        {
            Type Ts = M_RESULT_LAMP_ZJ.GetType();
            foreach (PropertyInfo pi in Ts.GetProperties())
            {
                object retValue = pi.GetValue(M_RESULT_LAMP_ZJ, null);
                string name = pi.Name;

                for (int i = 0; i < this.tabLamp.Controls.Count; i++)
                {
                    if (this.tabLamp.Controls[i] is TextBox)
                    {
                        TextBox txt = (TextBox)this.tabLamp.Controls[i];
                        if (txt.Tag != null && txt.Tag.ToString() == name)
                        {
                            txt.Text = retValue.ToString();

                            #region 左外灯远光光强
                            if (M_RESULT_LAMP_ZJ.ZWDYGGQ_PD != "-")
                            {
                                if (name == "ZWDYGGQ")
                                {//左外灯远光光强
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.ZWDYGGQ_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.ZWDYGGQ_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }

                            if (name == "ZWDJGCZPY")
                            {//左外灯远光垂直偏移量
                                if (M_RESULT_LAMP_ZJ.ZWDJGCZPY_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.ZWDJGCZPY_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.ZWDJGCZPY_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }

                            if (name == "ZWDJGSPPY")
                            {//左外灯远光水平偏移量
                                if (M_RESULT_LAMP_ZJ.ZWDJGSPPY_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.ZWDJGSPPY_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.ZWDJGSPPY_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }

                            if (name == "ZWDYGCZPY")
                            {//左外灯远光垂直偏移量
                                if (M_RESULT_LAMP_ZJ.ZWDYGCZPY_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.ZWDYGCZPY_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.ZWDYGCZPY_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }

                            if (name == "ZWDYGSPPY")
                            {//左外灯远光水平偏移量
                                if (M_RESULT_LAMP_ZJ.ZWDYGSPPY_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.ZWDYGSPPY_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.ZWDYGSPPY_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }
                            #endregion

                            #region 左内灯远光光强
                            if (name == "ZNDYGGQ")
                            {//左内灯远光光强

                                if (M_RESULT_LAMP_ZJ.ZNDYGGQ_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.ZNDYGGQ_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.ZNDYGGQ_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }

                            if (name == "ZNDYGCZPY")
                            {//左内灯远光垂直偏移量
                                if (M_RESULT_LAMP_ZJ.ZNDYGCZPY_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.ZNDYGCZPY_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.ZNDYGCZPY_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }

                            if (name == "ZNDYGSPPY")
                            {//左内灯远光水平偏移量
                                if (M_RESULT_LAMP_ZJ.ZNDYGSPPY_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.ZNDYGSPPY_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.ZNDYGSPPY_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }
                            if (name == "ZNDJGCZPY")
                            {//左内灯远光垂直偏移量
                                if (M_RESULT_LAMP_ZJ.ZNDJGCZPY_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.ZNDJGCZPY_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.ZNDJGCZPY_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }

                            if (name == "ZNDJGSPPY")
                            {//左内灯远光水平偏移量
                                if (M_RESULT_LAMP_ZJ.ZNDJGSPPY_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.ZNDJGSPPY_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.ZNDJGSPPY_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }
                            #endregion

                            #region 右外灯远光光强
                            if (name == "YWDYGGQ")
                            {//右外灯远光光强
                                if (M_RESULT_LAMP_ZJ.YWDYGGQ_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.YWDYGGQ_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.YWDYGGQ_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }

                            if (name == "YWDYGCZPY")
                            {//右外灯远光垂直偏移量
                                if (M_RESULT_LAMP_ZJ.YWDYGCZPY_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.YWDYGCZPY_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.YWDYGCZPY_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }

                            if (name == "YWDYGSPPY")
                            {//右外灯远光水平偏移量
                                if (M_RESULT_LAMP_ZJ.YWDYGSPPY_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.YWDYGSPPY_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.YWDYGSPPY_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }
                            if (name == "YWDJGCZPY")
                            {//右外灯近光垂直偏移量
                                if (M_RESULT_LAMP_ZJ.YWDJGCZPY_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.YWDJGCZPY_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.YWDJGCZPY_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }

                            if (name == "YWDJGSPPY")
                            {//右外灯近光水平偏移量
                                if (M_RESULT_LAMP_ZJ.YWDJGSPPY_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.YWDJGSPPY_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.YWDJGSPPY_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }
                            #endregion

                            #region 右内灯远光光强
                            if (name == "YNDYGGQ")
                            {//右内灯远光光强
                                if (M_RESULT_LAMP_ZJ.YNDYGGQ_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.YNDYGGQ_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.YNDYGGQ_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }

                            if (name == "YNDYGCZPY")
                            {//右内灯远光垂直偏移量
                                if (M_RESULT_LAMP_ZJ.YNDYGCZPY_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.YNDYGCZPY_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.YNDYGCZPY_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }

                            if (name == "YNDYGSPPY")
                            {//右内灯远光水平偏移量
                                if (M_RESULT_LAMP_ZJ.YNDYGSPPY_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.YNDYGSPPY_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.YNDYGSPPY_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }
                            if (name == "YNDJGCZPY")
                            {//右内灯近光垂直偏移量
                                if (M_RESULT_LAMP_ZJ.YNDJGCZPY_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.YNDJGCZPY_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.YNDJGCZPY_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }

                            if (name == "YNDJGSPPY")
                            {//右内灯近光水平偏移量
                                if (M_RESULT_LAMP_ZJ.YNDJGSPPY_PD != "-")
                                {
                                    if (string.IsNullOrEmpty(M_RESULT_LAMP_ZJ.YNDJGSPPY_PD) == false && Convert.ToInt32(M_RESULT_LAMP_ZJ.YNDJGSPPY_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }
                            #endregion
                        }
                    }
                }
            }
        }

        private void BindBaseZJTextBoxValue()
        {
             Type Ts = M_RESULT_VEHICLE_INFO.GetType();
             foreach (PropertyInfo pi in Ts.GetProperties())
             {
                 object retValue = pi.GetValue(M_RESULT_VEHICLE_INFO, null);
                 string name = pi.Name;

                 for (int i = 0; i < this.tabBase.Controls.Count; i++)
                 {
                     if (this.tabBase.Controls[i] is TextBox)
                     {
                         TextBox txt = (TextBox)this.tabBase.Controls[i];
                         if (txt.Tag != null && txt.Tag.ToString() == name)
                         {
                             txt.Text = retValue.ToString();
                         }
                     }
                 }
             }
        }

        private void BindDPCGZJTextBoxValue()
        {
            Type Ts = M_RESULT_DPCG.GetType();
            foreach (PropertyInfo pi in Ts.GetProperties())
            {
                object retValue = pi.GetValue(M_RESULT_DPCG, null);
                string name = pi.Name;

                for (int i = 0; i < this.tabDP.Controls.Count; i++)
                {
                    if (this.tabDP.Controls[i] is TextBox)
                    {
                        TextBox txt = (TextBox)this.tabDP.Controls[i];
                        if (txt.Tag != null && txt.Tag.ToString() == name)
                        {
                            txt.Text = retValue.ToString();

                            if (string.IsNullOrEmpty(M_RESULT_DPCG.GK_WDCS) == false && M_RESULT_DPCG.GK_WDCS != "-")
                            {
                                if (name == "GK_WDCS")
                                {//动力性(km/h)
                                    if (string.IsNullOrEmpty(M_RESULT_DPCG.GK_PD) == false && Convert.ToInt32(M_RESULT_DPCG.GK_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }

                            if (string.IsNullOrEmpty(M_RESULT_DPCG.YH_SCZ) == false && M_RESULT_DPCG.YH_SCZ != "-")
                            {
                                if (name == "YH_SCZ")
                                {//燃油经济性(L/100km)
                                    if (string.IsNullOrEmpty(M_RESULT_DPCG.YH_PD) == false && Convert.ToInt32(M_RESULT_DPCG.YH_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }

        private void BindRoadZJTextBoxValue()
        {
            Type Ts = M_RESULT_ROAD.GetType();
            foreach (PropertyInfo pi in Ts.GetProperties())
            {
                object retValue = pi.GetValue(M_RESULT_ROAD, null);
                string name = pi.Name;

                for (int i = 0; i < this.tabLS.Controls.Count; i++)
                {
                    if (this.tabLS.Controls[i] is TextBox)
                    {
                        TextBox txt = (TextBox)this.tabLS.Controls[i];
                        if (txt.Tag != null && txt.Tag.ToString() == name)
                        {
                            txt.Text = retValue.ToString();

                            if (string.IsNullOrEmpty(M_RESULT_ROAD.LSZDPPQK) == false && M_RESULT_ROAD.LSZDPPQK != "-")
                            {
                                if (name == "LSZDPPQK")
                                {//路试制动稳定性
                                    if (string.IsNullOrEmpty(M_RESULT_ROAD.LSZD_PD) == false && Convert.ToInt32(M_RESULT_ROAD.LSZD_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }

                            if (string.IsNullOrEmpty(M_RESULT_ROAD.LSZCJL) == false && M_RESULT_ROAD.LSZCJL != "-")
                            {
                                if (name == "LSZCJL")
                                {//路试坡道驻车
                                    if (string.IsNullOrEmpty(M_RESULT_ROAD.LSZD_PD) == false && Convert.ToInt32(M_RESULT_ROAD.LSZD_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }

                            if (string.IsNullOrEmpty(M_RESULT_ROAD.LSZDJLXZ) == false && M_RESULT_ROAD.LSZDJLXZ != "-")
                            {
                                if (name == "LSZDPPQK")
                                {//路试制动距离
                                    if (string.IsNullOrEmpty(M_RESULT_ROAD.LSZDJL_PD) == false && Convert.ToInt32(M_RESULT_ROAD.LSZDJL_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }

                            if (string.IsNullOrEmpty(M_RESULT_ROAD.LSZDJLXZ) == false && M_RESULT_ROAD.LSZDJLXZ != "-")
                            {
                                if (name == "LSZDPPQK")
                                {//路试MDFF(m/s²)
                                    if (string.IsNullOrEmpty(M_RESULT_ROAD.MFDD_PD) == false && Convert.ToInt32(M_RESULT_ROAD.MFDD_PD) == 2)
                                    {
                                        txt.BackColor = Color.Red;
                                    }
                                    else
                                    {
                                        txt.BackColor = Color.White;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }

        private void BindSDSZJTextBoxValue()
        {
            Type Ts = M_RESULT_SDS.GetType();
             foreach (PropertyInfo pi in Ts.GetProperties())
             {
                 object retValue = pi.GetValue(M_RESULT_SDS, null);
                 string name = pi.Name;

                 for (int i = 0; i < this.tabSDS.Controls.Count; i++)
                 {
                     if (this.tabSDS.Controls[i] is TextBox)
                     {
                         TextBox txt = (TextBox)this.tabSDS.Controls[i];
                         if (txt.Tag != null && txt.Tag.ToString() == name)
                         {
                             txt.Text = retValue.ToString();
                         }
                     }
                 }
             }
        
        
        }

        private void BindLDZJTextBoxValue()
        {
            Type Ts = M_RESULT_LD.GetType();
            foreach (PropertyInfo pi in Ts.GetProperties())
            {
                object retValue = pi.GetValue(M_RESULT_LD, null);
                string name = pi.Name;

                for (int i = 0; i < this.tabJZJS.Controls.Count; i++)
                {
                    if (this.tabJZJS.Controls[i] is TextBox)
                    {
                        TextBox txt = (TextBox)this.tabJZJS.Controls[i];
                        if (txt.Tag != null && txt.Tag.ToString() == name)
                        {
                            txt.Text = retValue.ToString();
                        }
                    }
                }
                


            }
        
        
        }

        private void BindASMZJTextBoxValue()
        {
            Type Ts = M_RESULT_ASM.GetType();
            foreach (PropertyInfo pi in Ts.GetProperties())
            {
                object retValue = pi.GetValue(M_RESULT_ASM, null);
                string name = pi.Name;

                for (int i = 0; i < this.tabASM.Controls.Count; i++)
                {
                    if (this.tabASM.Controls[i] is TextBox)
                    {
                        TextBox txt = (TextBox)this.tabASM.Controls[i];
                        if (txt.Tag != null && txt.Tag.ToString() == name)
                        {
                            txt.Text = retValue.ToString();
                        }
                    }
                }



            }
        
        }

        private void BindZYJSZJTextBoxValue()
        {
            Type Ts = M_RESULT_ZYJS.GetType();
            foreach (PropertyInfo pi in Ts.GetProperties())
            {
                object retValue = pi.GetValue(M_RESULT_ZYJS, null);
                string name = pi.Name;

                for (int i = 0; i < this.tabZYJS.Controls.Count; i++)
                {
                    if (this.tabZYJS.Controls[i] is TextBox)
                    {
                        TextBox txt = (TextBox)this.tabZYJS.Controls[i];
                        if (txt.Tag != null && txt.Tag.ToString() == name)
                        {
                            txt.Text = retValue.ToString();
                        }
                    }
                }



            }

        }

        private void BindVMASZJTextBoxValue()
        {
            Type Ts = M_RESULT_VMAS.GetType();
            foreach (PropertyInfo pi in Ts.GetProperties())
            {
                object retValue = pi.GetValue(M_RESULT_VMAS, null);
                string name = pi.Name;

                for (int i = 0; i < this.tabVMAS.Controls.Count; i++)
                {
                    if (this.tabVMAS.Controls[i] is TextBox)
                    {
                        TextBox txt = (TextBox)this.tabVMAS.Controls[i];
                        if (txt.Tag != null && txt.Tag.ToString() == name)
                        {
                            txt.Text = retValue.ToString();
                        }
                    }
                }



            }

        }

        private void BindSPEEDZJTextBoxValue()
        {
            Type Ts = M_RESULT_SPEED.GetType();
            foreach (PropertyInfo pi in Ts.GetProperties())
            {
                object retValue = pi.GetValue(M_RESULT_SPEED, null);
                string name = pi.Name;

                for (int i = 0; i < this.tabSPEED.Controls.Count; i++)
                {
                    if (this.tabSPEED.Controls[i] is TextBox)
                    {
                        TextBox txt = (TextBox)this.tabSPEED.Controls[i];
                        if (txt.Tag != null && txt.Tag.ToString() == name)
                        {
                            txt.Text = retValue.ToString();
                        }
                    }
                }



            }

        }

        private void BindSPEAKERZJTextBoxValue()
        {

            Type Ts = M_RESULT_SPEAKER.GetType();
            foreach (PropertyInfo pi in Ts.GetProperties())
            {
                object retValue = pi.GetValue(M_RESULT_SPEAKER, null);
                string name = pi.Name;

                for (int i = 0; i < this.tabSPEAKER.Controls.Count; i++)
                {
                    if (this.tabSPEAKER.Controls[i] is TextBox)
                    {
                        TextBox txt = (TextBox)this.tabSPEAKER.Controls[i];
                        if (txt.Tag != null && txt.Tag.ToString() == name)
                        {
                            txt.Text = retValue.ToString();
                        }
                    }
                }



            }
        
        
        
        
        }

        private void BindSIDESLIPZJTextBoxValue()
        {
            Type Ts = M_RESULT_SIDESLIP.GetType();
            foreach (PropertyInfo pi in Ts.GetProperties())
            {
                object retValue = pi.GetValue(M_RESULT_SIDESLIP, null);
                string name = pi.Name;
                
                for (int i = 0; i < this.tabSIDESLIP.Controls.Count; i++)
                {
                    if (this.tabSIDESLIP.Controls[i] is TextBox)
                    {
                        TextBox txt = (TextBox)this.tabSIDESLIP.Controls[i];
                        if (txt.Tag != null && txt.Tag.ToString() == name)
                        {
                            txt.Text = retValue.ToString();
                        }
                    }
                }



            }
        
        
        
        
        }

        private void BindSUSPENSIONZJTextBoxValue()
        {
            Type Ts = M_RESULT_SUSPENSION.GetType();
            foreach (PropertyInfo pi in Ts.GetProperties())
            {
                object retValue = pi.GetValue(M_RESULT_SUSPENSION, null);
                string name = pi.Name;

                for (int i = 0; i < this.tabXJ.Controls.Count; i++)
                {
                    if (this.tabXJ.Controls[i] is TextBox)
                    {
                        TextBox txt = (TextBox)this.tabXJ.Controls[i];
                        if (txt.Tag != null && txt.Tag.ToString() == name)
                        {
                            txt.Text = retValue.ToString();
                        }
                    }
                }



            }




        }
        #endregion

        /// <summary>
        /// 得到所有检测流水号
        /// </summary>
        /// <param name="strJCLSH"></param>
        /// <param name="bSingle"></param>
        /// <returns></returns>
        public List<string> GetAllJCLSH(string strJCLSH)
        {
            List<string> lstJCLSH = new List<string>();
            if (strJCLSH.Contains("-"))
            {
                string[] strInfos = strJCLSH.Split('-');
                int iJCCS = Convert.ToInt32(strInfos[1]) + 1;
                for (int i = 1; i < iJCCS; i++)
                {
                    lstJCLSH.Add(strInfos[0] + "-" + i.ToString("d2"));
                }
            }
            else
            {
                lstJCLSH.Add(strJCLSH);
            }

            return lstJCLSH;
        }

        #region Textbox Change事件，根据Textbox更新实体中的值

        private void txtBoxBase_TextChanged(object sender, EventArgs e)
        {
            TextBox txtCur = (sender as TextBox);
            string strValue = txtCur.Text;
            string strItem = txtCur.Tag.ToString();

            if (string.IsNullOrEmpty(txtCur.Tag.ToString()) == false)
            {
                Type t = M_RESULT_VEHICLE_INFO.GetType();

                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(M_RESULT_VEHICLE_INFO, null);
                    string name = pi.Name;

                    if (name == strItem)
                    {
                        Type Ts = M_RESULT_VEHICLE_INFO.GetType();
                        object obj1 = SD_ChanageType(strValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_VEHICLE_INFO, obj1, null);
                    }
                }
            }
        }

        private void txtBox_TextChanged(object sender, EventArgs e)
        {
            TextBox txtCur = (sender as TextBox);
            string strValue = txtCur.Text;
            string strItem = txtCur.Tag.ToString();

            if(string.IsNullOrEmpty(txtCur.Tag.ToString()) == false)
            {
                Type t = M_RESULT_BRAKE_ZJ.GetType();

                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(M_RESULT_BRAKE_ZJ, null);
                    string name = pi.Name;

                    if (name == strItem)
                    {
                        Type Ts = M_RESULT_BRAKE_ZJ.GetType();
                        object obj1 = Convert.ChangeType(strValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_BRAKE_ZJ, obj1, null);

                        SetParaInfoDefault();
                    }
                }
            }
        }

        private void txtBoxDG_TextChanged(object sender, EventArgs e)
        {
            TextBox txtCur = (sender as TextBox);
            string strValue = txtCur.Text;
            string strItem = txtCur.Tag.ToString();

            if (string.IsNullOrEmpty(txtCur.Tag.ToString()) == false)
            {
                Type t = M_RESULT_LAMP_ZJ.GetType();

                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(M_RESULT_LAMP_ZJ, null);
                    string name = pi.Name;

                    if (name == strItem)
                    {
                        Type Ts = M_RESULT_LAMP_ZJ.GetType();
                        object obj1 = Convert.ChangeType(strValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_LAMP_ZJ, obj1, null);

                        SetLampZJDefault();
                    }
                }
            }
        }

        private void txtBoxDP_TextChanged(object sender, EventArgs e)
        {
            TextBox txtCur = (sender as TextBox);
            string strValue = txtCur.Text;
            string strItem = txtCur.Tag.ToString();

            if (string.IsNullOrEmpty(txtCur.Tag.ToString()) == false)
            {
                Type t = M_RESULT_DPCG.GetType();

                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(M_RESULT_DPCG, null);
                    string name = pi.Name;

                    if (name == strItem)
                    {
                        Type Ts = M_RESULT_DPCG.GetType();
                        object obj1 = Convert.ChangeType(strValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_DPCG, obj1, null);

                        //SetLampZJDefault();
                    }
                }
            }
        }

        private void txtBoxSDS_TextChanged(object sender, EventArgs e)
        {
            TextBox txtCur = (sender as TextBox);
            string strValue = txtCur.Text;
            string strItem = txtCur.Tag.ToString();

            if (string.IsNullOrEmpty(txtCur.Tag.ToString()) == false)
            {
                Type t = M_RESULT_SDS.GetType();

                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(M_RESULT_SDS, null);
                    string name = pi.Name;

                    if (name == strItem)
                    {
                        Type Ts = M_RESULT_SDS.GetType();
                        object obj1 = Convert.ChangeType(strValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_SDS, obj1, null);

                        SetSDSZJDefault();
                    }
                }
            }
        }

        private void txtBoxLD_TextChanged(object sender, EventArgs e)
        {
            TextBox txtCur = (sender as TextBox);
            string strValue = txtCur.Text;
            string strItem = txtCur.Tag.ToString();

            if (string.IsNullOrEmpty(txtCur.Tag.ToString()) == false)
            {
                Type t = M_RESULT_LD.GetType();

                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(M_RESULT_LD, null);
                    string name = pi.Name;

                    if (name == strItem)
                    {
                        Type Ts = M_RESULT_LD.GetType();
                        object obj1 = Convert.ChangeType(strValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_LD, obj1, null);

                        SetJZJSZJDefault();
                    }
                }
            }
        
        
        }

        private void txtBoxASM_TextChanged(object sender, EventArgs e)
        {
            TextBox txtCur = (sender as TextBox);
            string strValue = txtCur.Text;
            string strItem = txtCur.Tag.ToString();

            if (string.IsNullOrEmpty(txtCur.Tag.ToString()) == false)
            {
                Type t = M_RESULT_ASM.GetType();

                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(M_RESULT_ASM, null);
                    string name = pi.Name;

                    if (name == strItem)
                    {
                        Type Ts = M_RESULT_ASM.GetType();
                        object obj1 = Convert.ChangeType(strValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_ASM, obj1, null);

                        SetASMZJDefault();
                    }
                }
            }


        }

        private void txtBoxZYJS_TextChanged(object sender, EventArgs e)
        {
            if (textBox77.Text != "" && textBox78.Text != "" && textBox79.Text != "")
            { 
            textBoxAVG.Text = (Math.Round((double.Parse(textBox77.Text) + double.Parse(textBox78.Text) + double.Parse(textBox79.Text)) / 3,2)).ToString();
            }

            TextBox txtCur = (sender as TextBox);
            string strValue = txtCur.Text;
            string strItem = txtCur.Tag.ToString();

            if (string.IsNullOrEmpty(txtCur.Tag.ToString()) == false)
            {
                Type t = M_RESULT_ZYJS.GetType();

                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(M_RESULT_ZYJS, null);
                    string name = pi.Name;

                    if (name == strItem)
                    {
                        Type Ts = M_RESULT_ZYJS.GetType();
                        object obj1 = Convert.ChangeType(strValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_ZYJS, obj1, null);

                       

                    }
                }
            }


        }

        private void txtBoxVMAS_TextChanged(object sender, EventArgs e)
        {
            TextBox txtCur = (sender as TextBox);
            string strValue = txtCur.Text;
            string strItem = txtCur.Tag.ToString();

            if (string.IsNullOrEmpty(txtCur.Tag.ToString()) == false)
            {
                Type t = M_RESULT_VMAS.GetType();

                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(M_RESULT_VMAS, null);
                    string name = pi.Name;

                    if (name == strItem)
                    {
                        Type Ts = M_RESULT_VMAS.GetType();
                        object obj1 = Convert.ChangeType(strValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_VMAS, obj1, null);
                        SetVMASZJDefault();

                    }
                }
            }


        }

        private void txtBoxSPEED_TextChanged(object sender, EventArgs e)
        {
            TextBox txtCur = (sender as TextBox);
            string strValue = txtCur.Text;
            string strItem = txtCur.Tag.ToString();

            if (string.IsNullOrEmpty(txtCur.Tag.ToString()) == false)
            {
                Type t = M_RESULT_SPEED.GetType();

                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(M_RESULT_SPEED, null);
                    string name = pi.Name;

                    if (name == strItem)
                    {
                        Type Ts = M_RESULT_SPEED.GetType();
                        object obj1 = Convert.ChangeType(strValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_SPEED, obj1, null);
                       

                    }
                }
            }


        }

        private void txtBoxSPEAKER_TextChanged(object sender, EventArgs e)
        {
            TextBox txtCur = (sender as TextBox);
            string strValue = txtCur.Text;
            string strItem = txtCur.Tag.ToString();

            if (string.IsNullOrEmpty(txtCur.Tag.ToString()) == false)
            {
                Type t = M_RESULT_SPEAKER.GetType();

                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(M_RESULT_SPEAKER, null);
                    string name = pi.Name;

                    if (name == strItem)
                    {
                        Type Ts = M_RESULT_SPEAKER.GetType();
                        object obj1 = Convert.ChangeType(strValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_SPEAKER, obj1, null);


                    }
                }
            }


        }

        private void txtBoxSIDESLIP_TextChanged(object sender, EventArgs e)
        {
            TextBox txtCur = (sender as TextBox);
            string strValue = txtCur.Text;
            string strItem = txtCur.Tag.ToString();

            if (string.IsNullOrEmpty(txtCur.Tag.ToString()) == false)
            {
                Type t = M_RESULT_SIDESLIP.GetType();

                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(M_RESULT_SIDESLIP, null);
                    string name = pi.Name;

                    if (name == strItem)
                    {
                        Type Ts = M_RESULT_SIDESLIP.GetType();
                        object obj1 = Convert.ChangeType(strValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_SIDESLIP, obj1, null);


                    }
                }
            }


        }

        private void txtBoxSUSPENSION_TextChanged(object sender, EventArgs e)
        {
            TextBox txtCur = (sender as TextBox);
            string strValue = txtCur.Text;
            string strItem = txtCur.Tag.ToString();

            if (string.IsNullOrEmpty(txtCur.Tag.ToString()) == false)
            {
                Type t = M_RESULT_SUSPENSION.GetType();

                foreach (PropertyInfo pi in t.GetProperties())
                {
                    object retValue = pi.GetValue(M_RESULT_SUSPENSION, null);
                    string name = pi.Name;

                    if (name == strItem)
                    {
                        Type Ts = M_RESULT_SUSPENSION.GetType();
                        object obj1 = Convert.ChangeType(strValue.ToString(), Ts.GetProperty(name).PropertyType);
                        Ts.GetProperty(name).SetValue(M_RESULT_SUSPENSION, obj1, null);


                    }
                }
            }


        }
     

        #endregion
            
        #region 根据限制修改判定
        private void SetLampZJDefault()
        {
            RESULT_VEHICLE_INFO_BLL bll = new RESULT_VEHICLE_INFO_BLL();
            var info = bll.GetModel(CurJCLSH);

            CalClass cal = new CalClass();
            cal.GetLampZJResult(M_RESULT_LAMP_ZJ);

            BindLampZJTextBoxValue();
        }
        private void SetSDSZJDefault()
        {
            RESULT_VEHICLE_INFO_BLL bll = new RESULT_VEHICLE_INFO_BLL();
            var info = bll.GetModel(CurJCLSH);
            CalClass cal = new CalClass();
            cal.GetSDSZJResult(M_RESULT_SDS);
            BindSDSZJTextBoxValue();     
        }
        private void SetVMASZJDefault()
        {
            RESULT_VEHICLE_INFO_BLL bll = new RESULT_VEHICLE_INFO_BLL();
            var info = bll.GetModel(CurJCLSH);
            CalClass cal = new CalClass();
            cal.GetVMASZJResult(M_RESULT_VMAS);
            BindVMASZJTextBoxValue();     
        
        }
        private void SetASMZJDefault()
        {
            RESULT_VEHICLE_INFO_BLL bll = new RESULT_VEHICLE_INFO_BLL();
            var info = bll.GetModel(CurJCLSH);
            CalClass cal = new CalClass();
            cal.GetASMZJResult(M_RESULT_ASM);
            BindASMZJTextBoxValue();     
        }
        private void SetJZJSZJDefault()
        {
            RESULT_VEHICLE_INFO_BLL bll = new RESULT_VEHICLE_INFO_BLL();
            var info = bll.GetModel(CurJCLSH);
            CalClass cal = new CalClass();
            cal.GetJZJSZJResult(M_RESULT_LD);
            BindLDZJTextBoxValue();
        }
        #endregion

        #region 保存更改信息
        private void btnSave_Click(object sender, EventArgs e)
        {
            try
            {
                bool bResult = false;
                RESULT_BRAKE_ZJ_BLL bll = new RESULT_BRAKE_ZJ_BLL();
                var bExists = bll.Exists(CurJCLSH);
                if (bExists)
                {
                    bResult = bll.Update(M_RESULT_BRAKE_ZJ, CurJCLSH);
                }
                else
                {
                    bResult = bll.Insert(M_RESULT_BRAKE_ZJ);
                }

                if (bResult)
                {
                    MessageBox.Show("保存成功！");
                }
                else
                {
                    MessageBox.Show("保存成功！");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("保存失败！");
            }
        }

        private void btnSaveLamp_Click(object sender, EventArgs e)
        {
            try
            {
                bool bResult = false;
                RESULT_LAMP_ZJ_BLL bll = new RESULT_LAMP_ZJ_BLL();
                var bExists = bll.Exists(CurJCLSH);
                if (bExists)
                {
                    bResult = bll.Update(M_RESULT_LAMP_ZJ, CurJCLSH);
                }
                else
                {
                    bResult = bll.Insert(M_RESULT_LAMP_ZJ);
                }

                if (bResult)
                {
                    MessageBox.Show("保存成功！");
                }
                else
                {
                    MessageBox.Show("保存成功！");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("保存失败！");
            }
        }

        private void btnSaveBase_Click(object sender, EventArgs e)
        {
            try
            {
                bool bResult = false;
                RESULT_VEHICLE_INFO_BLL bll = new RESULT_VEHICLE_INFO_BLL();
                var bExists = bll.Exists(CurJCLSH);
                if (bExists)
                {
                    bResult = bll.Update(M_RESULT_VEHICLE_INFO, CurJCLSH);
                }
                else
                {
                    bResult = bll.Insert(M_RESULT_VEHICLE_INFO);
                }

                if (bResult)
                {
                    MessageBox.Show("保存成功！");
                }
                else
                {
                    MessageBox.Show("保存成功！");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("保存失败！");
            }
        }

        private void btnSaveDP_Click(object sender, EventArgs e)
        {
            try
            {
                bool bResult = false;
                RESULT_DPCG_BLL bll = new RESULT_DPCG_BLL();
                var bExists = bll.Exists(CurJCLSH);
                if (bExists)
                {
                    bResult = bll.Update(M_RESULT_DPCG, CurJCLSH);
                }
                else
                {
                    bResult = bll.Insert(M_RESULT_DPCG);
                }

                if (bResult)
                {
                    MessageBox.Show("保存成功！");
                }
                else
                {
                    MessageBox.Show("保存成功！");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("保存失败！");
            }
        }

        private void btnLS_Click(object sender, EventArgs e)
        {
            try
            {
                bool bResult = false;
                RESULT_ROAD_BLL bll = new RESULT_ROAD_BLL();
                var bExists = bll.Exists(CurJCLSH);
                if (bExists)
                {
                    bResult = bll.Update(M_RESULT_ROAD, CurJCLSH);
                }
                else
                {
                    bResult = bll.Insert(M_RESULT_ROAD);
                }

                if (bResult)
                {
                    MessageBox.Show("保存成功！");
                }
                else
                {
                    MessageBox.Show("保存成功！");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("保存失败！");
            }
        }

        private void buttonSDS_Click(object sender, EventArgs e)
        {
            try
            {
                bool bResult = false;
                RESULT_SDS_BLL bll = new RESULT_SDS_BLL();
                var bExists = bll.Exists(CurJCLSH);
                if (bExists)
                {
                    bResult = bll.Update(M_RESULT_SDS, CurJCLSH);
                }
                else
                {
                    bResult = bll.Insert(M_RESULT_SDS);
                }

                if (bResult)
                {
                    MessageBox.Show("保存成功！");
                }
                else
                {
                    MessageBox.Show("保存成功！");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("保存失败！");
            }
        }

        private void buttonVMAS_Click(object sender, EventArgs e)
        {
            try
            {
                bool bResult = false;
                RESULT_VMAS_BLL bll = new RESULT_VMAS_BLL();
                var bExists = bll.Exists(CurJCLSH);
                if (bExists)
                {
                    bResult = bll.Update(M_RESULT_VMAS, CurJCLSH);
                }
                else
                {
                    bResult = bll.Insert(M_RESULT_VMAS);
                }

                if (bResult)
                {
                    MessageBox.Show("保存成功！");
                }
                else
                {
                    MessageBox.Show("保存成功！");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("保存失败！");
            }
        }

        private void buttonASM_Click(object sender, EventArgs e)
        {
            try
            {
                bool bResult = false;
                RESULT_ASM_BLL bll = new RESULT_ASM_BLL();
                var bExists = bll.Exists(CurJCLSH);
                if (bExists)
                {
                    bResult = bll.Update(M_RESULT_ASM, CurJCLSH);
                }
                else
                {
                    bResult = bll.Insert(M_RESULT_ASM);
                }

                if (bResult)
                {
                    MessageBox.Show("保存成功！");
                }
                else
                {
                    MessageBox.Show("保存成功！");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("保存失败！");
            }
        }

        private void buttonZYJS_Click(object sender, EventArgs e)
        {
            try
            {
                bool bResult = false;
                RESULT_ZYJS_BLL bll = new RESULT_ZYJS_BLL();
                var bExists = bll.Exists(CurJCLSH);
                if (bExists)
                {
                    bResult = bll.Update(M_RESULT_ZYJS, CurJCLSH);
                }
                else
                {
                    bResult = bll.Insert(M_RESULT_ZYJS);
                }

                if (bResult)
                {
                    MessageBox.Show("保存成功！");
                }
                else
                {
                    MessageBox.Show("保存成功！");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("保存失败！");
            }
        }
        
        private void tabJZJS_Click(object sender, EventArgs e)
        {
            try
            {
                bool bResult = false;
                RESULT_LD_BLL bll = new RESULT_LD_BLL();
                var bExists = bll.Exists(CurJCLSH);
                if (bExists)
                {
                    bResult = bll.Update(M_RESULT_LD, CurJCLSH);
                }
                else
                {
                    bResult = bll.Insert(M_RESULT_LD);
                }

                if (bResult)
                {
                    MessageBox.Show("保存成功！");
                }
                else
                {
                    MessageBox.Show("保存成功！");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("保存失败！");
            }
        } 

        private void buttonSPEED_Click(object sender, EventArgs e)
        {
            try
            {
                bool bResult = false;
                RESULT_SPEED_BLL bll = new RESULT_SPEED_BLL();
                var bExists = bll.Exists(CurJCLSH);
                if (bExists)
                {
                    bResult = bll.Update(M_RESULT_SPEED, CurJCLSH);
                }
                else
                {
                    bResult = bll.Insert(M_RESULT_SPEED);
                }

                if (bResult)
                {
                    MessageBox.Show("保存成功！");
                }
                else
                {
                    MessageBox.Show("保存成功！");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("保存失败！");
            }
        }
 
        private void buttonSJ_Click(object sender, EventArgs e)
        {
            try
            {
                bool bResult = false;
                RESULT_SPEAKER_BLL bll = new RESULT_SPEAKER_BLL();
                var bExists = bll.Exists(CurJCLSH);
                if (bExists)
                {
                    bResult = bll.Update(M_RESULT_SPEAKER, CurJCLSH);
                }
                else
                {
                    bResult = bll.Insert(M_RESULT_SPEAKER);
                }

                if (bResult)
                {
                    MessageBox.Show("保存成功！");
                }
                else
                {
                    MessageBox.Show("保存成功！");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("保存失败！");
            }
        }

        private void buttonCH_Click(object sender, EventArgs e)
        {
            try
            {
                bool bResult = false;
                RESULT_SIDESLIP_BLL bll = new RESULT_SIDESLIP_BLL();
                var bExists = bll.Exists(CurJCLSH);
                if (bExists)
                {
                    bResult = bll.Update(M_RESULT_SIDESLIP, CurJCLSH);
                }
                else
                {
                    bResult = bll.Insert(M_RESULT_SIDESLIP);
                }

                if (bResult)
                {
                    MessageBox.Show("保存成功！");
                }
                else
                {
                    MessageBox.Show("保存成功！");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("保存失败！");
            }
        }
        private void button4_Click(object sender, EventArgs e)
        {
            try
            {
                bool bResult = false;
                RESULT_SUSPENSION_BLL bll = new RESULT_SUSPENSION_BLL();
                var bExists = bll.Exists(CurJCLSH);
                if (bExists)
                {
                    bResult = bll.Update(M_RESULT_SUSPENSION, CurJCLSH);
                }
                else
                {
                    bResult = bll.Insert(M_RESULT_SUSPENSION);
                }

                if (bResult)
                {
                    MessageBox.Show("保存成功！");
                }
                else
                {
                    MessageBox.Show("保存成功！");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("保存失败！");
            }
        }

        #endregion
      
        #region 上传照片
        private void button2_Click(object sender, EventArgs e)
        {
            OpenFileDialog openfiledialog = new OpenFileDialog();
            openfiledialog.Filter = "Files|*.jpg;*.jpeg;*.png;*.gif";
            openfiledialog.InitialDirectory = AppDomain.CurrentDomain.BaseDirectory;
            if (openfiledialog.ShowDialog() == DialogResult.OK)
            {
                textBox43.Text = openfiledialog.FileName;
            }

        }
        private void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog openfiledialog = new OpenFileDialog();
            openfiledialog.Filter = "Files|*.jpg;*.jpeg;*.png;*.gif";
            openfiledialog.InitialDirectory = AppDomain.CurrentDomain.BaseDirectory;
            if (openfiledialog.ShowDialog() == DialogResult.OK)
            {
                textBox41.Text = openfiledialog.FileName;
            }
        }
        private void button3_Click(object sender, EventArgs e)
        {
            OpenFileDialog openfiledialog = new OpenFileDialog();
            openfiledialog.Filter = "Files|*.jpg;*.jpeg;*.png;*.gif";
            openfiledialog.InitialDirectory = AppDomain.CurrentDomain.BaseDirectory;
            if (openfiledialog.ShowDialog() == DialogResult.OK)
            {
                textBox42.Text = openfiledialog.FileName;
            }
        }
        #endregion

        #region 其他
        private void label13_Click(object sender, EventArgs e)
        {

        }

        private void label61_Click(object sender, EventArgs e)
        {

        }

        private void tabBase_Click(object sender, EventArgs e)
        {

        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void label75_Click(object sender, EventArgs e)
        {

        }

        private void label82_Click(object sender, EventArgs e)
        {

        }

        private void textBox7_TextChanged(object sender, EventArgs e)
        {

        }
       
        private void FrmData_Load(object sender, EventArgs e)
        {

        }

        private void label107_Click(object sender, EventArgs e)
        {

        }

        private void label120_Click(object sender, EventArgs e)
        {

        }

        private void button5_Click(object sender, EventArgs e)
        {

        }

        private void label118_Click(object sender, EventArgs e)
        {

        }

        private void tabOthers_Click(object sender, EventArgs e)
        {

        }

        private void textBox80_TextChanged(object sender, EventArgs e)
        {

        }
        #endregion
















    }
}
